Authentication Library for SvelteKit
"Lucia is a simple authentication library for SvelteKit that connects your SvelteKit app to your database. It handles the bulk of the authentication process, like creating and validating tokens, but only just enough that you can build on top of it to fit your use case.
That said, it isn't (just) a library that create tokens. It uses short-lived tokens, implements rotating refresh tokens, automatically refreshes tokens, and detects refresh token theft. It's goal is to simplify the development process while not being a pain in the ass to customize!"