Next-Auth Login Authentication Tutorial with Next.js App Directory

  Рет қаралды 269,401

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 320
@hamzahahmad1670
@hamzahahmad1670 Жыл бұрын
It's a bit late to comment, but congratulations Dave on getting sponsors for your videos (this is the first one I've come across) There are plenty of amazing tutorial creators on KZbin, but the amount of effort you put in your videos to explain each and every line of code, right down to mentioning the key binds you use, is just remarkable. Thank you for all your effort and I hope you gain even more success
@Mayank_Bisht_MB
@Mayank_Bisht_MB Жыл бұрын
everyone who face middleware issue. first clear your cookie in console.
@snivels
@snivels Жыл бұрын
The reason your videos are a cut above the rest is because you explain the 'why'. When you get an error you explain why you are getting the error and then you show how to fix it. When you paste a line of code, like the import of default from nextauth in the middleware file, you explain exactly what it's doing and also show how it works. Keep up the excellent work, you are appreciated!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@GuiKT88
@GuiKT88 10 ай бұрын
Hallelujah, thanks to let the people know what dependencies and versions you are using it, it helps so much man!
@Selimdede-jr2bv
@Selimdede-jr2bv Жыл бұрын
Hey dave when i started this job i used to watch your videos now i got my first job as a developer thanks man!
@kenthefley2226
@kenthefley2226 Жыл бұрын
This is a very informative and useful video. It would be awesome if you could expand on this by connecting a database to store users along with a credentials signup. Users should also be able to reset their password. An explanation of that is hard to come by and something most of us will need.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Great suggestion!
@mohammadrizwan230
@mohammadrizwan230 Жыл бұрын
Please I have the same request, looking forward to the video 😊
@heguer87
@heguer87 Жыл бұрын
Same, with admin roles.
@safariambience4052
@safariambience4052 Жыл бұрын
This is a great suggestion. I have learned a lot from this great piece. Thank you Dave
@OnlyJavascript
@OnlyJavascript Жыл бұрын
Prisma ❤
@JasonRice-z7v
@JasonRice-z7v 9 ай бұрын
One of the best next-auth tutorials that actually covers the app router. Disappointing that the next-auth docs don't cover this and are instead using the older page router.
@alessandrosalzo8280
@alessandrosalzo8280 5 ай бұрын
For those having problems with the App Router and middleware, I moved the middleware file inside the app folder, and worked
@ΚωνσταντίνοςΠόρο
@ΚωνσταντίνοςΠόρο 3 ай бұрын
If you're using App router without the src root folder you should move the middleware.ts in the root of the project at least that works in version 14.2 of next
@Leesdjo
@Leesdjo Жыл бұрын
Thank you Dave. You have the heart to teach and help people who are trying their best to learn how to code .
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You're very welcome!
@Den-yg4wz
@Den-yg4wz Жыл бұрын
Thanks Dave! It was very useful example, but very simple. 😉 Please, continue about NextAuth, cause you don't touch following themes: 1. Initial form for auth (how client can pass auth first time with credentials) 2. Working with DB, 3. How can clients change their credentials (email, pass, etc) at any time. 4. How can developer make own auth pages with another design? So we are waiting for next! Good luck, Dave! 💪😀)
@samuelbigelow3480
@samuelbigelow3480 Жыл бұрын
This is super helpful, thank you! I do want to call out that you said you would never want to use a server component within a client component, but the application is doing that when you're talking about providers. The AuthProvider component is a client component and it the client/page.tsx component is a server component rendered inside of that
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You're welcome! I appreciate the call out because this shows I likely didn't explain myself clearly on this specific issue. "use client" creates a boundary between server and client components and all other components imported in the client component including children will be rendered as client components according to the Next.js docs: nextjs.org/docs/app/building-your-application/rendering/client-components ..so to follow this up, I searched the NextAuth docs for an exception with the SessionProvider used inside the AuthProvider we create in this tutorial. I did not find where those docs dive into how NextAuth works around this.. but if you add a console.log(user) to the UserCard component, build the project with npm build, and then run it with npm start, you will see that after logging in and visiting the home and server routes, the console.log shows on the server terminal - confirming they are still server components. If you visit the client route, the console.log will show in the browser console. Further, the build report after running npm build will also indicate those pages are SSR and not client components. I hope this helps clarify what I meant. This would actually make a good blog post / explainer topic - but the client component uses the useSession hook which uses the context. The server components instead use getServerSession which doesn't require the context. More clarification on using Context Providers with Server Components here: nextjs.org/docs/app/building-your-application/rendering/composition-patterns#using-context-providers
@zilvinas5130
@zilvinas5130 10 ай бұрын
Damn, this tutorial is god tier comparing to other ones I found that tackle this topic. Detail all in the right places!
@joemathan6101
@joemathan6101 Жыл бұрын
Thanks Dave. Crystal clear step by step instructions on next auth. Now we have a deep understanding of how to configure and setup next auth in our projects. One suggestion a quick diagram of how the auth flow should be even more awesome!! Thank you for delivering quality content for us. Learning a lot from your videos.😊
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you and good suggestion - while this default setup is very straightforward, I think some customized solutions may need further explanation in the future. The default setup uses a session cookie with an encrypted JWT (JWE). This is important because Next.js is hosted in a serverless deployment so the auth info is really in the JWE and is verified by a NextAuth server function (running in a serverless environment). Serverless is a confusing word. It means it is one big lambda function outsourced to AWS behind the scenes. The auth persists due to the cookie staying in the client. The serverless environment may go to sleep when inactive.
@nademkhan931
@nademkhan931 Жыл бұрын
Thank you for that explanation, indeed 'serverless' was confusing to me before reading this
@alexanderhenting
@alexanderhenting Жыл бұрын
Hey Dave, after migrating from the pages router this tut helped me a lot on getting clear. There are a lot of tutorials out there and huge codebases with complex integrations and a lot of copy paste code, sometimes a bit hard to stay focused on the essentials. Greeting from Austria
@ohiasdxfcghbljokasdjhnfvaw4ehr
@ohiasdxfcghbljokasdjhnfvaw4ehr Ай бұрын
thank you so much for making this specifically with the new app router layout, i was very confused at first with the pages thing
@jior6
@jior6 Жыл бұрын
You make the best tutorials man, seriously thank you so much.
@andrewahlstrom8359
@andrewahlstrom8359 6 ай бұрын
Thank you Dave. I was having so much trouble trying to figure out how this was supposed to work. But after watching your video, the pattern became stupid simple. subscribed and looking forward to your content.
@spiderwebbs02
@spiderwebbs02 Жыл бұрын
Your tutorials are the best Dave. I got a job because of you. I thoroughly improved my projects because of your tutorials.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Excellent news! Congratulations on the job! 🚀
@gurditt_singh
@gurditt_singh 8 ай бұрын
This tutorial is so good! I was feeling so confused by next-auth and next.js, you made it seem so simple 😃
@DaveGrayTeachesCode
@DaveGrayTeachesCode 8 ай бұрын
Glad it helped!
@Evil_E_ye
@Evil_E_ye Жыл бұрын
I was making my website today and you uploaded this today saved many hours of work❤❤
@jordanryanethanowona2974
@jordanryanethanowona2974 Жыл бұрын
DAVE YOU ARE CLEARLY THE GOAT FOR ME. THANX A LOT
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@GabrielMartinez-ez9ue
@GabrielMartinez-ez9ue Жыл бұрын
Nice one...! One important point that maybe you can address in later videos is how to use user roles. To be able to pass roles to the session, you need to include them in the token, which is then read by the session.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
This is correct, and it is coming very soon!
@nademkhan931
@nademkhan931 Жыл бұрын
A very nice nuanced explanaton of Next-Auth. Yes please, I would like to see follow on tutorials on role-based access as you mention at the end
@SarahBrown-v6t
@SarahBrown-v6t Жыл бұрын
Hi Dave, this was an incredibly helpful video, I've now successfully set up Next Auth in my Next JS project with an AWS Cognito provider. Thanks for explaning everything so clearly and not glossing over the small details. I'll definitely check out your other videos on Next JS.
@anonihme5142
@anonihme5142 Жыл бұрын
if I may ask how did you find the cognito issuer? all the tutorials i've found for it used a cognito domain and amazon has revamped their whole UI making it really obnoxious
@anonihme5142
@anonihme5142 Жыл бұрын
nevermind, finally got there^^
@SarahBrown-v6t
@SarahBrown-v6t Жыл бұрын
​@@anonihme5142 sorry I didn't see your comment earlier, glad to see you got there! I followed this video to understand more about setting up the Cognito app client. I'd love to get Cognito working with the credentials provider as opposed to using their hosted UI, but that's on a future to-do list! kzbin.info/www/bejne/i2XLdpminM6rb8U
@anonihme5142
@anonihme5142 Жыл бұрын
@@SarahBrown-v6t cheers. Sadly the vid ends before he tries to log back in and sees that the next -auth logout function doesn't clear cookies on the cognito server, so the user is logged back in without being asked for his credentials, which is a major security risk. It amazes me that there's no simple way to do that. But then again, i'm a total noob, so simple for me is a very low bar. I shall persist and remain calm! thanks for the reply, best of luck
@chan4est
@chan4est Ай бұрын
This video was great. I was really confused trying to navigate the docs as they aren't updated to use Next.js 14. Thanks again!
@knload
@knload Жыл бұрын
I'd love to see the role based user authorization video. Thanks for the video, nicely done. 👍
@adimardev1550
@adimardev1550 Жыл бұрын
i love your voice Dave. keep up the Good Work! We Cant Thank You More Than We Say 🙏
@RezHimself
@RezHimself Жыл бұрын
Another amazing toturial, to be honest I've been waiting for this video 👌👌👌
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad you liked it!
@himanshutiwari9616
@himanshutiwari9616 6 ай бұрын
Very beautifully explained dave. love from India❤
@desertpillar5286
@desertpillar5286 Жыл бұрын
Great stuff! This was the first tutorial that actually showed the basics of how to get it working and showed where the actual routes for the automatic pages lived. One thing I'm still a bit confused about is as why there's no default signup as well in Next-Auth as that seems to be an extremely common pattern. For any type of SaaS application, how would you relate the models to the correct user/org unless you have the user in your db? So showing a more advanced (but still basic) flow like signup => verify email => verified signed in, and signin => change password would be appreciated. Also perhaps how to make your own signin page call the right endpoints in nextauth. Thanks again for saving me a lot of time!
@desertpillar5286
@desertpillar5286 Жыл бұрын
I found the answer. It’s called Clerk. Use it and never look back!
@wasifalam545
@wasifalam545 Жыл бұрын
💡One tip for anyone who is just starting: Please analyze the starter code file first, on the timestamp 25:06 and then complete the rest of it By the way Great tutorial Dave 🔥Loved it.
@fulltimefrontend
@fulltimefrontend 6 ай бұрын
This video was of great help, we are currently extrapolating to ditch Supabase auth for nextAuth
@DanielMolnar_Tuzla
@DanielMolnar_Tuzla Жыл бұрын
This is long awaited video. Thank you Dave, you helped me so much
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad to help!
@judevector
@judevector Жыл бұрын
This is a very packed information and I really understand every bit of it ,I was in another tutorial before the guy was explaining it but it was very hard to get . Immediately I came here it just clicked ❤
@abdullahfurkanozbek7558
@abdullahfurkanozbek7558 Ай бұрын
fantastic tutorial, I just had one issue regarding api folder location, I did add it under pages rather than app folder which didnt work. I didnt understand why because in their docs it was built that way. Anyway after finding it everything went great. Thanks for preparing such a quality content. Db integration would be great in the future. Thank you so much
@vishwanathsinha
@vishwanathsinha Жыл бұрын
Thank you Dave. This was very helpful. You made things crystal clear to understand and implement the next-auth with next 13.2 + version. Also when to use server and client component. Overall you made it very simple.
@AlirezaGarshasbi-kr1on
@AlirezaGarshasbi-kr1on 11 ай бұрын
this tutorial is absolutely perfect.
@anay5233
@anay5233 10 ай бұрын
Awesome tutorial I would be delighted if you could consider creating a tutorial on the process of authentication and authorization, encompassing both frontend and backend aspects. It would greatly enhance my understanding to learn about the complete flow, such as how the frontend transmits the authentication token to the backend during sign up or login. I'm eager to gain insights into the entire process. Frontend - Nextjs Backend - python
@jonathan_luz
@jonathan_luz 9 ай бұрын
The best content about this subject
@MangalaKarunarathne
@MangalaKarunarathne Жыл бұрын
I just completed short while ago... Nice tutorial with well explanation... Thanks a lot... 🥰
@SkippyTheCanadianKangaroo
@SkippyTheCanadianKangaroo Жыл бұрын
Thanks Dave for this video! It has actually helped me GET the right data for the Credentials login. But im having a little difficulty getting users to sign in with Username,Password. But with this video i was actually able to get a step forward! THANK YOU!
@SAIDToufik-r4l
@SAIDToufik-r4l 11 ай бұрын
Thanks for the content but what about editing the user informations on his profile page ? with that stack it's a pain
@adamjames8732
@adamjames8732 Жыл бұрын
There is an upcoming release of next-auth v5 which uses a universal auth() function and contains many breaking changes. I would love to see a renewed tutorial for the nearest v5 release. Keep on the good work..
@Rawdyn
@Rawdyn Жыл бұрын
Yep, this. Definitely this.
@xuananhofficial7879
@xuananhofficial7879 Жыл бұрын
How to customize login button with Credentials?
@afsanazamannipa7711
@afsanazamannipa7711 11 ай бұрын
Elaborated Explanation. Great. Thanks
@karendoran3692
@karendoran3692 Жыл бұрын
Very beautifully explained as usual. I would love to see more next auth tutorials!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
More to come!
@shayanhdry6224
@shayanhdry6224 Жыл бұрын
Hello Dave Yet another awesome Tutorial thank you , here instead of using session callback for getting picture you used getserversession ?
@huutamnguyen2529
@huutamnguyen2529 Жыл бұрын
An easy tutorial to understand. Thank you so much!👍
@mikhacavin
@mikhacavin Жыл бұрын
hello, where i can watch the tutorial before this video ? so i can learn it before jump to this tutorial
@YoshiGO71
@YoshiGO71 5 ай бұрын
Thank you Dave for your helpful content .
@sahaneakanayaka3394
@sahaneakanayaka3394 Жыл бұрын
OMG! Thank you so much Dave ❤❤🙏🙏. Love your tutorials...
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Welcome!
@andrescampos8333
@andrescampos8333 Жыл бұрын
Phenomenal, best tutorial I've run across, thank you.
@kaputokalandanya5915
@kaputokalandanya5915 Жыл бұрын
I was literally just looking for this, thank you!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad I could help!
@PaarsahSoroury
@PaarsahSoroury Жыл бұрын
Thank you dear Dave, for always inspiring me to put my best foot forward, even when I don't feel like I belong. I hope the best for you in your life. Warm Regards.
@swahagaming5261
@swahagaming5261 Жыл бұрын
I have a question : Lets say I want to allow the user to choose what to use to login in with and then they can connect all there social media account such as twitter,instgram after they sign in . How do you do that ?
@adityendrasuman8818
@adityendrasuman8818 Жыл бұрын
Super clear. Thank you! One question - what exact purpose is adding "AuthProvider" to the layout page serving? I think was able to apply authentication to a client page even without this. Also, more basic question - what do we exactly mean by client page vs. server page?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Work through my Next.js course to understand what client vs server component means. AuthProvider is like any other context provider in React. It is required to support auth in client components.
@VijayMeena-z3u
@VijayMeena-z3u Жыл бұрын
im facing an issue during production build. The middleware pages/middleware must export a middleware or a default function
@k303k
@k303k 11 ай бұрын
Thanks a lot for this tutorial Dave!
@owenhochwald506
@owenhochwald506 8 ай бұрын
Thanks you explained very clearly and now i understand!
@brandonbailey4491
@brandonbailey4491 Жыл бұрын
Great vid. the challenge im facing is defining a pattern that allows me to integrate with a custom API. Any recommendations?
@sarowarhosen003
@sarowarhosen003 Жыл бұрын
Very informative lesson thank you sir
@Rikimkigsck
@Rikimkigsck Жыл бұрын
Thank you so much for explaining everything beautifully Dave.
@pablotexeira7579
@pablotexeira7579 Жыл бұрын
great job as always, thank you. you've been of great help once again!!!!
@vittoriomorellini1939
@vittoriomorellini1939 Жыл бұрын
Great video and great explanation of Nextauth . Amazing tool to manage authentication. Thanks Dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad you liked it!
@calebjoshuacj6883
@calebjoshuacj6883 3 ай бұрын
Hi , I wanted to deploy my application in some platform by using gitlab pipeline. So how to pick credentials because I cannot pass it directly in .env file... So how to pass the sensitive credentials like cognito id and all
@mimos6198
@mimos6198 Жыл бұрын
Great explanation and unique content. I am waiting for more videos about Next.js, and problems faced by many beginners and solve these problems. Thank you for making this effort to explain the code
@SalmanKhan-mn3cn
@SalmanKhan-mn3cn 4 ай бұрын
Sir after configure the next-auth , you just directly go on UI without saying that how setup this ui login page therefore a lot of viewer leave the video
@sadeghmahboobifar7521
@sadeghmahboobifar7521 Жыл бұрын
YOU ARE GRATE DAVE, any time that I have any problems on coding , you will make a video about my problem, Thank you my friend
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You are most welcome!
@abhijeetray9097
@abhijeetray9097 Жыл бұрын
Thanks Dave, it was really insightful
@niallmoore8240
@niallmoore8240 Жыл бұрын
awesome work, thank you Dave!
@fiendsgaming7589
@fiendsgaming7589 Жыл бұрын
Thank you Dave Gray! You're life saver!
@rsrinivas6025
@rsrinivas6025 Жыл бұрын
Hi dav i am trying to implement apple id sing-in in next js but i am unable to integrate the same, please make one video on the same. I am not find any reference as well please help me with this regards
@hadilibrahim4465
@hadilibrahim4465 Ай бұрын
Hello I hope you're OK I need auth.js with firebase (credentials and google providers) and with next-intl can you explain!?! Thank you.
@dailydestress6189
@dailydestress6189 Жыл бұрын
Please explain the concept using some flow diagrams for easy understanding. Simply copying along the code is not very practical.
@sebmonti5904
@sebmonti5904 Жыл бұрын
I had to use middleware for internationalisation, how can I also use it for nextAuth. There is only one matcher
@maherworld1
@maherworld1 Жыл бұрын
Dude you are the best. much love
@IndianCoders
@IndianCoders Жыл бұрын
Nice One Dave!!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thanks!
@pjgorton5908
@pjgorton5908 Ай бұрын
Dang I cannot get openssl command to do anything? Spent an hour trying to get openssl but no luck. Any suggestions?
@GeorgeDonnelly
@GeorgeDonnelly Жыл бұрын
This is an awesome tutorial, thank you!
@svitliarka
@svitliarka 9 ай бұрын
Great tutorial, thank you!
@legendzain3273
@legendzain3273 Жыл бұрын
That's great, I have a question that if we have to design a custom form so with it we have to make post request to that dynamic route of next auth([...nextauth]) using fetch or similar api? or is there another way to send credentials to the api route? and how github or google provider can be placed in custom form, It would be a great favor for me if you make video on it or extend this video. Thanks. Hit like if you want this too
@PJ-od9ev
@PJ-od9ev Жыл бұрын
hi. when i open a new tab on the browser, it's like the session is gone and i have to login again even though i logged in earlier. i looked in the browser cookies and nextauth-session-token is not there for new tab.
@Eva8621
@Eva8621 8 ай бұрын
Hi Dave, thanks for the really nice tutorial. I heard what you said about only using services on your channel that you think are really good. In relation to that, I was wondering what your opinion is on AWS Cognito? I am trying to do authentication using next-auth and Cognito but find this tricky. Any chance you would be willing to make a tutorial on this combination? Thanks again.
@PENGGAO-fi5is
@PENGGAO-fi5is Жыл бұрын
Thank you Dave, nothing to say, brilliant.
@markdenvermanuel8493
@markdenvermanuel8493 Жыл бұрын
Thank you much, Dave! I have been following and watching your Next series from the moment it was still in experimental phase and up to now that is already stable. Please create a video with signup that has a database and also the role based auth. Thank you and more power!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Role-based auth on the way. More to come!
@MrAtomUniverse
@MrAtomUniverse Жыл бұрын
message: 'Profile id is missing in Twitter OAuth profile response' Any idea why is console log showing this ? For Twitter OAuth 2.0
@EricOnYouTube
@EricOnYouTube Жыл бұрын
Yes, role based auth would be fantastic. Thanks! :)
@zksumon847
@zksumon847 Жыл бұрын
Wow . Do you have plans to do one in clerk ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I can. Clerk provides some nice features.
@MrAtomUniverse
@MrAtomUniverse Жыл бұрын
Hi, i have API calls that are only for the user but the API provider is either NESTJS or Laravel API , which kind of token or auth should i use so the external API can deal with it?
@nodesunlimited
@nodesunlimited Жыл бұрын
thank you so much for all you do to enlighten me personally, please if you can expand this to include user roles, and how to redirect different users to their dashboard like if admin take them to admin only page on login and if only member take them only to member page ...
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I have another video about NextAuth and roles. The callback function is what you need to complete the routing you want.
@devippo
@devippo Жыл бұрын
Hi Dave, Thanks for your tutorial. Looking for ways to implement a "Remember Me" feature by dynamically updating the maxAge. Have you been able to do this? I've seen some people destroy the token on browser close.
@chandramani6682
@chandramani6682 Жыл бұрын
Nice job Dave 😊
@MDKhan-ww5tp
@MDKhan-ww5tp Жыл бұрын
I am looking at Next-Auth for the first time normally i create my own authentication system with avatar session management etc. it is kinda interesting but the disadvantage is we can't control the full security system
@EricOnYouTube
@EricOnYouTube Жыл бұрын
Dave, regarding the next config for images, how do I know the hostname? I am using Azure AD and don't know where those images are hosted. Thanks.
@rockNbrain
@rockNbrain Жыл бұрын
Great job Dave ... well explained , tks a lot 🎉
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad you liked it!
@muhamadbadriyusuf5686
@muhamadbadriyusuf5686 Жыл бұрын
hi dave, i got session req loop in network/console client, and when deploy to vercel it redirect too many times caused down...i use custom login pages /signin in options....and middleware mathcer to path i want to protect...thanks dave
@megamind452
@megamind452 Жыл бұрын
Yes, please make a role based authentication video.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Coming soon!
@sahilatahar
@sahilatahar 6 ай бұрын
Hey Mr Dave Gray, you have used types packages in dependencies not in devdependencies. Is this ok to have types packages in main dependencies? Anyone answer please?
@codewithedraak
@codewithedraak Жыл бұрын
I have question Dave Can i use next auth for login when i am using Next 14 actions ? I made a form and give action to it and make login user , i am stuck at setting session what am i doing wrong please let me know
@MrAtomUniverse
@MrAtomUniverse Жыл бұрын
I tried to do the client method on my header which is a seperate use client file , i'm getting Error: [next-auth]: `useSession` must be wrapped in a , or am i suppose to not do this to header ? Shouldn't i be wrapping this whole session thing on a layout file ?
Next.js App Router Authentication (Sessions, Cookies, JWTs)
11:31
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,6 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 19 МЛН
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Why Are Threads Needed On Single Core Processors
16:07
Core Dumped
Рет қаралды 3,7 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 102 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19