Back to Browse

Authentication and Authorization in SvelteKit 1 with SQLite

3.5K views
Jan 24, 2023
48:01

Code: https://github.com/phartenfeller/sveltekit-1.0-sqlite-demo-app/tree/tut-2-authorization-authentication Demo: https://sveltekit-demo.hartenfeller.dev/ SvekteKit 1.0 + SQLite tutorial: https://youtu.be/iO4VUbQ6ua4 Follow me: Twitter: https://twitter.com/phartenfeller Mastodon: https://mastodon.social/@phartenfeller Blog: https://hartenfeller.dev/blog Support me: https://www.buymeacoffee.com/hartenfeller https://paypal.me/phartenfeller In this tutorial we will build a password authentication im SvelteKit 1. We store the passwords hashed with bcrypt in a table. Sessions will be stored with a cookie and in the backend. With a SvelteKit hook and locals to allow for authorization of processes. Timestamps: 0:00 Intro 02:13 Login Form 04:22 Storing the Credentials in a table 13:26 Check Credentials for Login 18:09 Sessions with Cookies 39:27 Logout 43:17 Authorizations Resources: https://blog.logrocket.com/password-hashing-node-js-bcrypt/

Download

0 formats

No download links available.

Authentication and Authorization in SvelteKit 1 with SQLite | NatokHD