SvelteKit Auth Example
This project shows you how to implement a simple authentication system using SvelteKit.
Checkout the source code here.
This demo doesn't use a database and instead just stores user data in a server-side cookie. This is just for demo purposes. In your application you'd want to connect to some backend system instead.
Try signing up, loggin out, then logging in with that same user credentials then try and API request.