Svelte | tips and hooks.server Gotcha!!

Опубликовано: 10 Апрель 2026
на канале: Consulting Ninja
1,423
42

This video shows some authentication tips, pointing out a big gotcha with using hooks.server as the only auth check your app has. I give an example and show when the hooks file doesn't trigger , I then show how to create an auth api end point that you can use to authenticate a user from anywhere! I hope you find this helpful!

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/au...

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...