DEV Community

Cover image for NestJS GraphQL authentication with JWTs
Kelvin Mai
Kelvin Mai

Posted on

NestJS GraphQL authentication with JWTs

This video goes over how to use the graphql context in nestjs and use it to authenticate requests with json web token (jwt).

Top comments (5)

Collapse
 
leohxj profile image
Leo Hui

why not add refreshToken with authentication

Collapse
 
sk8guerra profile image
Jorge Guerra

Thank you!

Collapse
 
thiagosf profile image
Thiago Silva Ferreira

This approach is so simple and effective. Thank you! 🤩

Collapse
 
zhangjichengcc profile image
zhangjicheng

nice work

Collapse
 
rajgohil07 profile image
Raj Gohil

Thank you so much for a really well-explained context and for saving my day, thanks mate for your fantastic teaching.