Since when did you started learning code? Because comparing to the fact that you're 19 but having much more knowledge than a 22 yrs old me is admiring :D
@@elliottchong thats actually amazing, i have been around web dev for nearly 2 years now but im feeling like being stuck at one place and dont know what should I do to be a better software engineer :(
I also fell into the Clerk trap. I wanted to control how org roles were assigned without having someone go the clerk. It's started getting messy very quickly when I just wanted an admin to be able to assign someone a role on my site. I wouldn't say dropping clerk has been hard. Figuring out another solution was.
Thank you for your details explanation! but may i ask you a question, how to get the session on client side without making all the pages dynamic because accessing `cookie()` from `next/headers`?
Eagerly waiting for the video like building a production based AI SAAS tool that has these features AI humanizer tool and AI Content detector tool, simply clone of undetectable ai tool or hix ai humanizer tool.
instead of releasing mouse when you press `cmd + shift + 4` don't release it, it saves the screenshot, rather press esc and then release mouse. If you understand and love the tip, send me a heart in reply.
Bro it's insane, i want to know how did you learn computer science so when i will have a child i can teach him young the best way so he can understand and learn code like u. i see that you did hackathlon so i think th best way to learn is by doing something "fun" i guess. Like codeinggame maybe
I would avoid Lucia for now. While the package seems useful, it is largely maintained by a single person, without any audits. A helper package for your frontend is one thing, but a single maintainer for your sensitive data is another. Supply chain attacks are real
True but this “one person” did a lot of work for free for people. You can always look at the source and even build on top of it yourself so you control the code. People who dont know how to make DIY auth safe dont care if auth libraries are safe or not there using them for convenience
It doesn't matter if its built by one person. The author is really good in authentication and it really works. No complain whatsoever. also there are 100+ contributors.
Don't understand how you can use cookies() in a server actions, this is provide by the nodejs api ? How it's work in deep, response of a post form containe cookie, and broswer automaticly set the cookie into the browser ?
Hey, very good video, but don't you think this approach will call the db for every request, which might lead to unnecessary, just a doubt, how about jwt approach instead? feel free to correct me
what’s wild is lucia does almost nothing in the grand scheme of things. you still need a library for handling the sso integrations. it doesn’t do anything for magic email links or sms codes. you’re basically writing the entire auth from scratch anyway.
Great video. However if we signout it didnt delete the current cookie from Database which you need to delete. i just modify the code to like that let me know if that is the good way to do that.. export const logOutAction = async () => { const currentCookie = cookies().get(lucia.sessionCookieName)?.value await lucia.invalidateSession(currentCookie); currentCookie const session = await lucia.createBlankSessionCookie(); cookies().set(session.name, session.value, session.attributes); return redirect("/"); };
@@liu-river ory kratos, zitadel, authentik and even crap java keycloak. I have used kratos and keycloak. I would never use keycloak again for many reasons...
Goddamn… THAT WAS SO DETAILED AND EXPLAINATORY😩 super proud of youuuuu Ellyyyy 🔥🫶🏻
THANK YOU!!!
This is so educational! Thank you for the content, im looking forward to embarking with you on the course :)
Welcome aboard!
Loving the content Elliott. How young and knowledgeable you are is inspiring!
Looking forward to seeing this channel and community grow!
Most Underrated Kid . Tbh , why don't you start a course series or something for fullstack
he already did.checkout his description.
@@PolarBearBaby didn't knew , thanks for letting me know
@@shashankinjapan welcome
Welcome back Ellee!!!!
glad to see u back
another superb quality vid elliott❤❤ keep up the great work 😊
Thank you! Will do!
This is the best explanation I had about authentication !!! KEEP UP BRO
Bro you are a hero you are a legend you are a saviour you are a thanos! Just when I am fed up of Next auth you made this. Thank you
Nice to see you back
Yesssiir welcome back Eliot 🔥🙏
Since when did you started learning code? Because comparing to the fact that you're 19 but having much more knowledge than a 22 yrs old me is admiring :D
He taught in freecodecamp , so I also doubt when he started learning coding 😮
Thank you for the kind words! I learnt coding myself around 3 years ago, started web dev 2 years ago!
@@elliottchong thats actually amazing, i have been around web dev for nearly 2 years now but im feeling like being stuck at one place and dont know what should I do to be a better software engineer :(
Asians are always the smartest😅
I've never assist to a video like this one. Very Interesting , Keep Up
I also fell into the Clerk trap. I wanted to control how org roles were assigned without having someone go the clerk. It's started getting messy very quickly when I just wanted an admin to be able to assign someone a role on my site.
I wouldn't say dropping clerk has been hard. Figuring out another solution was.
Gold, thank you.
Dude you're 19!!!!!
Damn i'm sooo impressed
Thank you, this was really helpful!
Great video man 💪
If he created this and took third, just imaging what the first and second person created, damn!
Amazing video
Thanks for creating it
Great video,
make one on mermaid to make diagrams in next js
Thank you for your details explanation! but may i ask you a question, how to get the session on client side without making all the pages dynamic because accessing `cookie()` from `next/headers`?
Long time no see Elliot
Just what i was looking for thanks a lot
Video worthy of sub, great stuff
Keep up the great work! Cool Cool Cool!
Great Video! 🫶 You could make a second video for email verification and password reset etc.
Nice mindset brother and love from India , and being 21 but still learning from you looks very interesting!
glad to see you
Eagerly waiting for the video like building a production based AI SAAS tool that has these features AI humanizer tool and AI Content detector tool, simply clone of undetectable ai tool or hix ai humanizer tool.
I mostly prefer next auth but i also try lucia also
instead of releasing mouse when you press `cmd + shift + 4` don't release it, it saves the screenshot, rather press esc and then release mouse.
If you understand and love the tip, send me a heart in reply.
40:10 BTW super easy is to press cmd + shift + L
very happy to see you back! thanks for this video. have you already test Kinde auth and what is your feedback about this?
why dont you use somehing which is open sauce ?
Why do you need library for auth? i keep a simple login with jwt check in middleware.
Please launch a backend series 😊
🔥🔥🔥
Hey Elliot ,
I have a query what will we do with bunch of sessions we created everytime we login is there any fix?
btw thanks a lot for this resource.
Also, is there a reason you're using sudo?
yeah but we dont want to store our users data, that is hard to make secure
u the goat! ty!!
Nice one bro. What's your take on Kinde?
What's your browser and VSCode theme?
I’m using Arc browser, and the VSCode theme is one of the default ones
Thank you! ❤️default vscode font also?
hi, may i ask what terminal you're using ? it looks really cool
Bro it's insane, i want to know how did you learn computer science so when i will have a child i can teach him young the best way so he can understand and learn code like u. i see that you did hackathlon so i think th best way to learn is by doing something "fun" i guess. Like codeinggame maybe
I would avoid Lucia for now. While the package seems useful, it is largely maintained by a single person, without any audits. A helper package for your frontend is one thing, but a single maintainer for your sensitive data is another. Supply chain attacks are real
True but this “one person” did a lot of work for free for people. You can always look at the source and even build on top of it yourself so you control the code. People who dont know how to make DIY auth safe dont care if auth libraries are safe or not there using them for convenience
@@codingwithjamal auth.js has been around for years and has been audited by real companies
What a 🤡 I bet you haven’t read a single package source code once in your life
It doesn't matter if its built by one person.
The author is really good in authentication and it really works. No complain whatsoever.
also there are 100+ contributors.
The famous Chinese is back
Don't understand how you can use cookies() in a server actions, this is provide by the nodejs api ? How it's work in deep, response of a post form containe cookie, and broswer automaticly set the cookie into the browser ?
server action is basically a POST endpoint. So you can access manipulate cookies inside it. This cookie is then passed to the browser and save it.
Hey, very good video, but don't you think this approach will call the db for every request, which might lead to unnecessary, just a doubt, how about jwt approach instead? feel free to correct me
You can just cache the output of getUser after successful login and put it inside the middleware instead of each page.
please add forgot password and email verification
Lewis Carol Williams Mark Lee Timothy
And supabase auth?
Can i use lucia with vite?
Can we use lucia on React project as well?
what’s wild is lucia does almost nothing in the grand scheme of things. you still need a library for handling the sso integrations. it doesn’t do anything for magic email links or sms codes. you’re basically writing the entire auth from scratch anyway.
@@jeffreytgilbertyeaa you're right
I am second
I'm first 😂
next auth is trash
Great video. However if we signout it didnt delete the current cookie from Database which you need to delete.
i just modify the code to like that let me know if that is the good way to do that..
export const logOutAction = async () => {
const currentCookie = cookies().get(lucia.sessionCookieName)?.value
await lucia.invalidateSession(currentCookie);
currentCookie const session = await lucia.createBlankSessionCookie();
cookies().set(session.name, session.value, session.attributes);
return redirect("/");
};
what if i told you that you have better open source auth systems that can be used in any language and not just shitty nodejs
Spill the beans already
@@liu-river ory kratos, zitadel, authentik and even crap java keycloak. I have used kratos and keycloak. I would never use keycloak again for many reasons...
Clerk , kinde now this