SvelteKit Auth in 15 Minutes

  Рет қаралды 4,781

Ben Davis - Tech

Ben Davis - Tech

Күн бұрын

Auth is not nearly as hard as it used to be.
Thanks to cloudinary for sponsoring this series!
cld.media/bendavis
my stuff
discord: / discord
x (twitter): / bmdavis419
insiderviz: www.insiderviz.com
blok: www.theblokapp.com
timestamps
0:00 intro
0:40 lucia setup
6:40 login flow
11:45 protecting routes

Пікірлер: 34
@bmdavis419
@bmdavis419 3 ай бұрын
This series is sponsored by cloudinary, definitely go check them out, their new Svelte SDK is fantastic and the beautiful performant images on Sediment would not have happened without them! cld.media/bendavis
@Plunzi
@Plunzi 3 ай бұрын
Ben, your videos are awesome and they really do help me out very often! Thanks for doing this.
@rawlespringer3917
@rawlespringer3917 2 ай бұрын
I know you said one pro is that your users live in your database..but what are some of the cons of going with an open source library vs something like clerk or auth0? Also how does an authentication library differ from something like google oauth or github oauth that you spoke about?
@muhammadfahadislam7069
@muhammadfahadislam7069 3 ай бұрын
Thank you so much @bmdavis419 I loved the video & explanation was smooth. 100% out of 10%. I might be going to consider Lucia for actual Production environment.
@nro337
@nro337 2 ай бұрын
Great video!
@biscuithammer
@biscuithammer 27 күн бұрын
we all be trippin' with the LSD stack! 💯
@GabrielGasp
@GabrielGasp 3 ай бұрын
I have a honest question for you Ben, do you consider this app production ready regarding libraries? What I mean is, do you trust these libraries like Drizzle and Lucia for an application that is expected to be maintained for a long period of time? I don’t dislike any of these new libraries, but I find it really hard to use them in the real world (outside of small personal projects). Maybe I’m being paranoid but I simply can’t trust them without a decent track record.
@bmdavis419
@bmdavis419 3 ай бұрын
Lucia is such a lightweight library that I trust it, you can look at the source code and its just a bunch or nice helpers and all the data lives in ur db so I think its safe For drizzle I personally am betting on them in prod, they have a really good team and at the end of the day an ORM is something I feel comfortable switching out if I need to the big things I would not risk are file storage, database, a messageing/queue system, a auth provider (clerk, auth0, etc.)
@paarkgrounds
@paarkgrounds 3 ай бұрын
hi ben! how would you compare the advantages of this modular approach versus using a fully integrated BaaS like supa/fire/pocketbase?
@bmdavis419
@bmdavis419 3 ай бұрын
I need to ship something with supabase before I can give a full opinion, will hopefully have one soon!
@yanisxmine
@yanisxmine 3 ай бұрын
@@bmdavis419 please do! you have a great way of explaining things - just wish you did a few tutorials with just sveltekit + supabase combo. for beginners like me figuring out 2 tools is more realistic than 4 ;)
@bmdavis419
@bmdavis419 3 ай бұрын
@@yanisxmine yea ill definitely go over those once I've done it I really just make videos on the stuff i have/am building which is why my videos tend to be all over the place
@dhorimato8444
@dhorimato8444 2 ай бұрын
Hi Ben! I have a question. I am using a helper function just like yours but it is not protecting nested routes. For example, /3092 is being protected, but /3092/randomized is not being protected. Any idea how I can go about fixing that?
@bmdavis419
@bmdavis419 2 ай бұрын
It depends on where you are doing the check, if its in a layout then don't do that, move it to a specific page. Each should have a guard in its load function or API route
@fedacuric8719
@fedacuric8719 3 ай бұрын
Nice video, thanks. Would you mind sharing the code?
@bmdavis419
@bmdavis419 2 ай бұрын
its in the description!
@cotyhamilton
@cotyhamilton 3 ай бұрын
Lucia Cinematic Universe or Some Shit 👏 😂
@amerrashed6287
@amerrashed6287 14 күн бұрын
Awesome Ben🎉. Is there github source code?
@Richetechguy
@Richetechguy 3 ай бұрын
Lucia auth is great i just moved over to v3
@mr.random8447
@mr.random8447 2 ай бұрын
Do you have an AuthZ library you use? That’s what I’m currently stuck on.
@bmdavis419
@bmdavis419 2 ай бұрын
Auth 0? I moved off that a LONG time ago lol, I'm using lucia these days, or occasionally Clerk for react stuff
@mr.random8447
@mr.random8447 2 ай бұрын
@@bmdavis419 No AuthZ, aka Authorization. Different than AuthN (Authentication). Yeah I use lucia too for AuthN
@bmdavis419
@bmdavis419 2 ай бұрын
@@mr.random8447 oooh yea for that I just put an enum on my users table lol
@mr.random8447
@mr.random8447 2 ай бұрын
@@bmdavis419 Oh, so just RBAC. Have you done ABAC before?
3 ай бұрын
why not new supabase ssr?
@bmdavis419
@bmdavis419 3 ай бұрын
this project was built a while ago, my next one is gonna use supabase
@TheMrArmbull
@TheMrArmbull Ай бұрын
please give me link repo of this project
@TheMrArmbull
@TheMrArmbull Ай бұрын
in your github account there is no this repo...
@kaiden3514
@kaiden3514 2 ай бұрын
*PromoSM*
@user-ru3jc8tf1x
@user-ru3jc8tf1x 2 ай бұрын
This tool sucks, i prefer auth0 or eartho
@mr.random8447
@mr.random8447 2 ай бұрын
You don’t have control of your users and if your app scales prepare to pay up
@mixed_nuts
@mixed_nuts 2 ай бұрын
AuthJS is just so much more simple and straight forward
How I Authenticate my Sveltekit Apps
21:31
Ben Davis - Tech
Рет қаралды 7 М.
5 Things I Wish I Knew When I Started Using SvelteKit
7:27
Ben Davis - Tech
Рет қаралды 8 М.
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 33 МЛН
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 9 МЛН
Can you beat this impossible game?
00:13
LOL
Рет қаралды 45 МЛН
AI SDK 3.1 First Impressions
24:12
Ben Davis - Tech
Рет қаралды 3,8 М.
i didn't know these svelte tips
18:56
Nev the Dev
Рет қаралды 1,7 М.
I Tried Every Svelte UI Library
20:57
Joy of Code
Рет қаралды 38 М.
Svelte Is Good For Beginners
9:28
ThePrimeTime
Рет қаралды 70 М.
Why SvelteKit is Great
22:18
Ben Davis - Tech
Рет қаралды 7 М.
A Trick for Cleaner Svelte Components
3:43
Huntabyte
Рет қаралды 45 М.
14 Awesome Real World Projects Using Svelte
10:49
Joy of Code
Рет қаралды 24 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 2,9 МЛН
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 1,4 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 8 МЛН
3.5.A Solar Mobile 📱 Charger
0:39
Gaming zone
Рет қаралды 320 М.