I put this together in response to a many requests for more complicated pieces of code. This video requires a mongodb! Building on the last form example we add the ability to login. In that process we verify the password, create a json web token and store it in a cookie. Then we create a hooks.server file to check if a user is authenticated and return that user in our locals to make use of in our application. I also show how to logout and how to convert loaded data into a store for use everywhere in your application! 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/sv...
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...