Implement Refresh Tokens Today!

Опубликовано: 11 Апрель 2026
на канале: Consulting Ninja
3,622
75

This was an awesome one to shoot! How to implement refresh tokens in your application. I show the normal flow, and then I go step by step taking a regular login and adding the refresh token check. I also show how to implement TWO handle hooks functions using sequence from SvelteKit. I hope you find this helpful!

Note: For best security use a separate server to implement all your authentication and another server for all your resources. See this video for how:    • Using External Vercel Authentication Serve...  

My channel membership is live check it out here!:
   / @consultingninja  

Membership perk video:
   • I launched a chatbot with my channel membe...  

Need help? visit https://www.consultingninja.tech
Check out my channel ‪@ConsultingNinja‬ for more videos like these.

Source code here:
https://github.com/consultingninja/re...

Authentication video here:
   • Svelte | #authentication using JWT , Cooki...  

Register Form video here:
   • Svelte | Real world register form example ...  

Mongodb Docker setup video here:
   • mongodb | docker & cloud setups  

Setup Env File Video here:
   • SvelteKit | $env module | how to use .env ...  

Hookup Mongodb to SvelteKit video here:
   • SvelteKit | Mongodb connect | using projec...