Next.js Auth | This is the Easiest Way To Build Auth with Cookie Sessions

  Рет қаралды 52,974

Lama Dev

Lama Dev

Күн бұрын

Пікірлер: 88
@morshedulislamriaad6496
@morshedulislamriaad6496 9 ай бұрын
I'm searching for next auth and when i Found lama dev made a video about auth I feel happy.
@keithgoddard4192
@keithgoddard4192 9 ай бұрын
Wow, this was so useful... your tutorials on NextJS have been a a lifesaver!
@AdeebJamil-k8n
@AdeebJamil-k8n 19 күн бұрын
00:04 Learn cookie-based authentication in Next.js without external libraries. 03:01 Creating a navigation bar and setting up authentication in Next.js. 09:02 Store secret keys and configure cookie options for sessions. 12:05 Implementing cookie-based authentication with session management in Next.js. 17:49 Implement user authentication with form data and session management. 20:42 Implementing session management and authentication in Next.js with cookie sessions. 26:22 Implement session checks and user redirection for authentication. 29:19 Updating user session without a database using revalidation. 35:08 Validate user sessions to manage access and permissions effectively. 37:54 Easily manage user sessions in Next.js with custom solutions. Crafted by Merlin AI.
@alexandrmeyer
@alexandrmeyer 9 ай бұрын
Thank you VERY MUCH for a great introduction into Iron session. There is no much info about it. If you do more projects on the subject that would be megafantastic!
@b166er4
@b166er4 10 ай бұрын
i start 3 years ago with Lama ;), thx for all your content, i was just finishing updating my nextauth with typscript zod, and server actions.... i just make a suggestion, why dont you use middleware to control page access ? as you do in your mern project... i find it more clean and more safe ... happy coding my friend ;)
@Vg_19_08
@Vg_19_08 10 ай бұрын
Thank you for this, can you go more deep like ,role based auth like user,admin,super admin. And also route protection based on routes.Sociak media auth like google and github.Thank you
@theway_up
@theway_up 10 ай бұрын
Perfect. Thanks for your content!
@NoorAziz-j1m
@NoorAziz-j1m 9 ай бұрын
Your videos are amazing as usual, please create a course on next auth with next 14 using providers, protecting routes using middleware, thanks,
@emredurgunlu7570
@emredurgunlu7570 9 ай бұрын
Excellent tutorial. Thank you very much.
@dennisngari3557
@dennisngari3557 10 ай бұрын
Thanks lamadev. This one came at the right time..
@ioabhishek
@ioabhishek 10 ай бұрын
Dropped at the right time, Thanks Lamadev
@dzseroldfabian4574
@dzseroldfabian4574 9 ай бұрын
I would like to see more video about advanced topics related to this
@san.d_
@san.d_ 10 ай бұрын
Thanks for another awesome tutorial, Lama. I really appreciate it.
@Praveen-x6b
@Praveen-x6b 10 ай бұрын
thank you my dear brother...
@nyctophillia2292
@nyctophillia2292 9 ай бұрын
ITS that easy guys ♥😊 love ur content bro thank you so much ✨📚
@StenWasTaken
@StenWasTaken 7 ай бұрын
raelly good tutorial, i really like that you explain whats going on too
@nthiwafelix7967
@nthiwafelix7967 9 ай бұрын
Thanks, really helpful.
@saar2r
@saar2r 8 ай бұрын
AMAZING! Thank you so much for this clear video 🔥🔥
@umidbekermatov8493
@umidbekermatov8493 10 ай бұрын
Thanks for the tutorial. Now I have a problem with internationalization in Next js 14 with Auth js V5. It would be perfect if the next tutorial is about it
@rasputinmoore
@rasputinmoore 9 ай бұрын
cool videooo.... since you're asking what kind of videos we'd like to watch i propose you one: Next.js with AWS with Lambda functions
@Gustavo-bi4hv
@Gustavo-bi4hv 10 ай бұрын
Could you give example using Social auth?
@pjborowiecki2577
@pjborowiecki2577 10 ай бұрын
@LamaDev Thank you for this video. I agree with Gustavo-bi4hv, a continuation to this tutorial with OAuth social sign in or/and magic links would be great
@iredoxtech7104
@iredoxtech7104 10 ай бұрын
Thank you for doing this
@SantoshKumar-sm8pc
@SantoshKumar-sm8pc 10 ай бұрын
I will watch later but i hit like first because your content is always awesome thank you
@zabihullahjan2569
@zabihullahjan2569 10 ай бұрын
Love you lama dev 😘😘😘😘😘😘😘😘 thanks alot for that video 🎉❤
@jaay06
@jaay06 8 ай бұрын
Thank you for this tutorial, been wishing to know more about auth And yes, please do more auth tutorials, maybe on on nextauth
@xczm225
@xczm225 9 ай бұрын
damn cool video! sure please do more advanced stuff!
@Ethan_404
@Ethan_404 9 ай бұрын
thank sir. that is literally helped me....
@coder5336
@coder5336 10 ай бұрын
Great
@agrikmajumdar1937
@agrikmajumdar1937 4 ай бұрын
Never knew that Mario's such a skill developer along with a skilled plumber
@mastergammer100
@mastergammer100 8 ай бұрын
This worked for me, thank you a lot
@artrsv
@artrsv 9 ай бұрын
Thank you for the video! Can you tell me how to access user data in client components in this configuration?
@shubhjhawar5390
@shubhjhawar5390 9 ай бұрын
⨯ Error: Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead. I get this error when I try to get Session details in my client component, but your's is working in the same way. what am I missing?
@imkir4n
@imkir4n 10 ай бұрын
Wow perfect timing.
@mounir101
@mounir101 10 ай бұрын
Great one! is this easiest way better than using middleware? thanks a lot and keep up the good work.
@imkir4n
@imkir4n 10 ай бұрын
please continue this and show us the important things such as token rotation .
@krzysztofs3t532
@krzysztofs3t532 10 ай бұрын
Great topic! Thank you very much for this material. BTW - I have special playlist created on YT only for your guides :D
@ניסיםעוזיאל
@ניסיםעוזיאל 10 ай бұрын
great tutorial, thanks
@liebebilder3529
@liebebilder3529 9 ай бұрын
Could you please give me an idea how to translate dynamic texts in Next.js?
@YuuffyLIVE
@YuuffyLIVE 9 ай бұрын
Why does the logout function only work with form action={logout} and a submit button, but not with onclick handlers like a Button Component that uses onClick={logout} It always resolves in Uncaught in Promise | undefined
@EricLiebrecht
@EricLiebrecht 8 ай бұрын
Because the logout function is only on the server and not the client. With the form action you are sending a request to the server to signal that this function should be executed. Every onclick handler is at the client
@dazaiosamuu-yi7sf
@dazaiosamuu-yi7sf 9 ай бұрын
can you please make a project similar to tripadvisor with the mern stack
@sahilsharma1inspirationalTape
@sahilsharma1inspirationalTape 9 ай бұрын
lama Sir can you make a tutorial for making ecommerce marketplace like amazon with minimal scss and nextjs 14 (server actions included, auth, payment gateway and other essential)
@amirseraj-bt2xs
@amirseraj-bt2xs 8 ай бұрын
Hi Thankyou for your videos, can you make a video about how can work with NextAuth v5 in Next.js 14 if we have laravel as backend Tnx alot
@TBDfilesLalit_kalyan
@TBDfilesLalit_kalyan 3 ай бұрын
thank you so much sir....really aprociate you
@sachind.p6737
@sachind.p6737 3 ай бұрын
@lamadev Thank you for making it so simple. But I have an issue of not getting the session that was saved. It works as expected on my local, but on a linux server, it seems to return a new session when i try to access the session that was saved earlier. Has anyone faced this issue, and how did you resolve it?
@cb73
@cb73 7 ай бұрын
How are you not getting this error? "Error: Cookies can only be modified in a Server Action or Route Handler." when adding "const session = await getSession();" to a page?
@harunhatiboglu
@harunhatiboglu 10 ай бұрын
Harikasın lamadev 🎉
@SachinSharma590
@SachinSharma590 10 ай бұрын
Bro this is good... But i am stuck how we will use using nodejs and nextjs auth Basically if we are setting cookies from backend server the how nodejs will get it ? With httpOnly ?
@jacobhollakitan3807
@jacobhollakitan3807 10 ай бұрын
Thank you Lama
@graphiclife5416
@graphiclife5416 2 ай бұрын
Auth state doesn't change if your session expires or if you delete session from cookies (because it's cached). How can I fix this?
@tarekegnkeltaa
@tarekegnkeltaa 10 ай бұрын
Thanks Dear! but we were waiting for the promised VS code extensions and shortcuts video.
@stcode59
@stcode59 2 ай бұрын
But how can you fetch those informations in client components then cause im struggling using cookies session with next js15
@wowgaming2663
@wowgaming2663 9 ай бұрын
Lama i am confused how we know like e commerce website user add to card some product after logout and agin login how we. Fetch the user data how we know this user select this data
@joscript7846
@joscript7846 8 ай бұрын
Each user will have separate IDs. So once u create a user, it's details get stored on Ur database, once u are fetching that user. U get to store his/her details or payloads inside Ur cookies or local storage or straight up with Ur Auth provider, so u check if this user is stored in the cookie is same with the one from Ur database
@filipmatic3338
@filipmatic3338 2 ай бұрын
hey can someone tell me how do i implement Maxage functionality when user check the remember me box in iron-session
@potantirittisak8494
@potantirittisak8494 5 ай бұрын
Please make more advanced auth videos! Thanks!!
@sinthujanbalachandran6686
@sinthujanbalachandran6686 8 ай бұрын
Can't we use middleware to protect the routs rather than writing prtection codes inside each page?
@Ismail-hd4yz
@Ismail-hd4yz 4 ай бұрын
I tried next auth. Could not figure out lot of things. So I did my own useAuth hook in React. Now everything fine.
@clashwithpnkj4464
@clashwithpnkj4464 4 ай бұрын
This is great tutorial but i have one query that is this secure method to do this? If i will use this method in my production website then what should i do to make more secure from attacks. Please send your feedbacks it will be helpful
@nayemalifahim6701
@nayemalifahim6701 10 ай бұрын
How to host backend and frontend in different domains and use them together.
@SantoshKumar-sm8pc
@SantoshKumar-sm8pc 10 ай бұрын
through api and handle permissions
@ajaysh73
@ajaysh73 10 ай бұрын
you are great!!☺
@ranawaqas4080
@ranawaqas4080 8 ай бұрын
login form is client componet so i can see call in network and password in payload how can we make this more secure ?
@gurushantupase3306
@gurushantupase3306 8 ай бұрын
This was awesome but could you please make for authorization with bearer token and how to protect the routes without any library then it will be the great.
@laduniestu
@laduniestu 7 ай бұрын
wow this is great tutorial, but are there any weaknesses in using an authentication system like this?
@khaledsanny4817
@khaledsanny4817 6 ай бұрын
What if its a separate backend using jwt ?
@Yunyun-o6m
@Yunyun-o6m 6 ай бұрын
Hi anyone here can help me please im also trying to create a page and when i started to implement iron-session and tried to implement the getSession in my Navbar it started to get an error like react-server-dom-webpack/client module not found very odd error but when i remove the getSession the page works again
@magolakenneth1024
@magolakenneth1024 2 ай бұрын
can you do a tutorial about firebase auth with role based access and session management
@vernevens1598
@vernevens1598 9 ай бұрын
Your code from git hub doesn't work.
@usamarazaaq7266
@usamarazaaq7266 10 ай бұрын
Please an e-commerce app with Next Js 14 Mongodb , redux , stripe checkout and deployment on vercel.
@aminda6862
@aminda6862 10 ай бұрын
great thanks
@Arvind__7
@Arvind__7 10 ай бұрын
What theme do you use?😕😕😕😕
@renchandara389
@renchandara389 10 ай бұрын
Want to see next js full course release
@gaming_zen_99
@gaming_zen_99 10 ай бұрын
Bro make a video about both client side and server side validation together in next.js 14 with server actions
@rashid_rashi009
@rashid_rashi009 10 ай бұрын
Great ❤
@HosseinPi921
@HosseinPi921 9 ай бұрын
@LamaDev please create a multi step form with react and framer motion
@shubhamupadhyay3174
@shubhamupadhyay3174 8 ай бұрын
@cryptoworld1923
@cryptoworld1923 10 ай бұрын
Lama can you provide advance project like Figma clone
@amelianceskymusic
@amelianceskymusic 3 ай бұрын
What about Lucia?
@alishakhatri6919
@alishakhatri6919 6 ай бұрын
Can we change password like this even if we dont set in database ?
@mdsafikulislam9113
@mdsafikulislam9113 10 ай бұрын
Please make more related tutorials.
@shankar66
@shankar66 10 ай бұрын
great video but as i informed you in a previous video comment, the authentication was a little confusing using auuth.dev. please make a separate video step by step and dont use typescript if possible.
@gaming_zen_99
@gaming_zen_99 10 ай бұрын
Make a tutorial with Next.js 14, Drizzle and Neon
@andrsh9388
@andrsh9388 10 ай бұрын
go example social media and create db
@mugambwajoel6121
@mugambwajoel6121 2 ай бұрын
internship management system
Authentication Flow in Next.js (Complete Tutorial)
30:37
Cosden Solutions
Рет қаралды 30 М.
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
CSS Tips And Tricks 2 | I Wish Somebody Told Me Before
12:36
Lama Dev
Рет қаралды 50 М.
Next.js Credentials Auth Made Easy with Better Auth
1:07:38
Cand Dev
Рет қаралды 6 М.
Storm Curse STATIC LINK + CURSE OF AVERNUS | Ability Draft
10:35
evanescent dota 2
Рет қаралды 289