DEV Community

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

Posted on

18 4

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay