Refresh Token Rotation With Next-Auth V5 || Managing Tokens With A Custom Backend

Опубликовано: 12 Ноябрь 2024
на канале: tapaScript by Tapas Adhikary
7,782
257

Enjoying my Videos & Teaching? Don't forget to,
✅ Subscribe to:    / tapasadhikary  
✅ Join tapaScript as a member to enjoy the perks:
   / @tapasadhikary  

Let's learn how to manage Access and Refresh tokens with Next-Auth(aka auth.js) version 5. This video tutorial will teach you about tokens, token management, access vs refresh tokens, and how to rotate refresh tokens.

We will continue to build the project we started at the beginning of the Next-Auth V5 series and incorporate token management and rotation into it.

Let's GO 🚀

Timecodes
0:00 - We Will Learn These
01:13 - Token, Access Token, Refresh Token
05:49 - The App
08:52 - Understanding Token Management
13:41 - APIs on Postman
16:39 - Login API call from authorized
22:07 - Next-Auth Callbacks: jwt and session
24:47 - Token Rotation Flow
26:18 - Access Token Expires and UI
36:57 - Refresh Token Rotation and UI
47:34 - What's Next?

Source Code on tapaScript GitHub:
https://github.com/tapascript/learn-n... (If you like, please support the project with a ⭐ and follow tapaScript on GitHub.)

Join tapaScript Discord
  / discord  

Authentication & Authorization Video
   • Authentication and Authorization: How...  

🤝 My Links:
Blog: https://blog.greenroots.info/
Follow on X(Twitter):   / tapasadhikary  
Connect on LinkedIn:   / tapasadhikary  
Follow My Work on GitHub: https://github.com/atapas
Follow on Facebook:   / tapasadhi  

👋 Liked my work? Thank You. You can sponsor me from here:
Sponsor Me: https://github.com/sponsors/atapas
Sponsor my Blog: https://blog.greenroots.info/sponsor

About Me:
Tapas Adhikary is an Educator at tapaScript, Tech enthusiast, Writer, YouTuber, and Open Source projects maintainer/contributor. He is a full-stack developer with vast experience in building SaaS solutions. He is the founder of the ReactPlay platform, which is driven by open-source projects and a fast-growing community.

You can find more about him at https://tapasadhikary.com.

#nextjstutorial
#next
#nextjs14
#nextauth
#authentication
#nextjs
#nextjs13
#nextjsapprouter
#thinkinginnextjs
#nextjstutorial
#next-auth
#authjs
#token
#tokens
#authorization