Svelte Kit Authentication workflow using JWT and Cookies
2 min readOct 16, 2022
I am using it in my new projects and today I’ve implemented a JWT authentication workflow and I’ve learned more about how to work with Svelte : )
In this post, I will share some ideas on how to implement a JWT workflow by integrating your SvelteKit app with an API backend that issues the JWT tokens.
Sign up
On the server side of the Svelte Kit app we do this:
Login
The Login form looks like this: