SvelteKit Authentication Using Cookies

preview_player
Показать описание
Learn SvelteKit user authentication using cookies.

👉️ Support:

YouTube Membership

Patreon

👉️ Links:

SvelteKit Authentication Using Cookies

👉️ List of what I use:

👉️ Socials:

🔖 Timestamps

00:00 Introduction
00:07 Setting Up The Database
06:27 User Registration
18:03 User Login
29:16 User Logout
31:31 Passing User Data To Pages
39:57 Protected Routes
47:27 Progressive Enhancement
53:44 Outro

#sveltekit #authentication #joyofcode
Рекомендации по теме
Комментарии
Автор

Hey friends! 👋

I hope you learned how SvelteKit auth works but in your projects I would advise you to use an auth library that deals with edge cases like Lucia.

JoyofCodeDev
Автор

I really, really appreciate how you make a text article with every video, especially with longer videos like this. It makes it SO much easier to focus on things that I need more time to think about than jumping around pausing all over the place.

kymion
Автор

Thank you so much for this!
I was new to sveltekit, found one of your old vid about this, but after that route changes I couldn't really understand the old one.
You're the best!

aldyreal
Автор

Yooo! my voice-man is here with a great refresh. it was really a joy to watch this one! Keep them coming! very insightful.

hmiiro
Автор

I love your videos. It's really easy to chill and follow along. And whenever I'm in a hurry it's great to have access to the web article and just see the code quickly.
Thanks so much for sharing this!

mendodev
Автор

Thank you! It was a very helpful tutorial. Loving you content 👌🏼

JuanmaNomad
Автор

I totally agree about Prisma. I often think, Am I missing something? Why doesn't every JS developer in the world use Prisma? :) I tend to work in the opposite direction as you did in this video. I set up and make changes directly in the database, and then in the project I can just 'npx prisma db pull' and then 'npx prisma generate'. Magically the DB and ORM are synced. Love it.

pevey
Автор

The precious and rarest piece on earth as on date. Thanks.

codenx
Автор

Loving this content. It’s really helping me with sveltekit.. Your videos are so easy to follow and you explain things well..

stripeyhorse
Автор

Thank you for your wonderful explanations! With combined help from you, and others, I have a working authentication system on my app. I'm also integrating JWT into the cookie. I love how you explained the code as you went, and not just narrated your typing... Thank you again for your awesome Svelte videos!

marlopainter
Автор

Bro I really wish I can give 10 thumbs up!!!! 👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍 Excellent video everything works as expected!

leboyoyo
Автор

You are a god to me, the way you explain everything is phenomenal. Truly adds joy to my life.

xicor
Автор

Thank you! I was really looking into cookie auth yesterday, and found your other videos. Thanks again! You are awesome!

mihaiandrei
Автор

Love this! I’ve been waiting for this refresh 🤩

hrefamid
Автор

Great video as allways. Never tried Prisma but it is on my list. Keep up the good work 💻

cookifymedia
Автор

thank you bro for all you effort to explain this, you are awesome!

aminebouramada
Автор

I would love to see an updated version of this using SvelteKit 2.0 and Svelte 5! Maybe even with JWT Tokens instead of just a uuid.

foobar
Автор

Do you know how to hydrate said data with a class that is available on all pages? I am currently doing site lookups, but I want the object available on the client to be a Site object. That object contains basic information (provided by the server), but also a bunch of helper methods to get the appropriate data where required, such as site features.etc.

I know I can use a writable store that gets shared between all components, and establish the Site object via that - but the problem is that this value should not be writable - it should be set once, and then forget about it, and remain immutable.

Any ideas?

kaibe
Автор

9:47 literally never knew there was an issue or that there was a way to refresh the page for that issue. I thought I just didn't understand typscript....

djdankmemes
Автор

Amazing tutorial. Only thing missing is how to deal and process expiring cookies

khalilayari