This is the only NextAuth video that should be on the internet. Went through loads of videos and this is the only one that makes sense. Even reading the documentation now makes sense as well.
No the issue is still there auth.ts export const {auth, handlers: {GET,POST}, signIn, signOut} = NextAuth({ adapter: PrismaAdapter(prisma), session: {strategy: 'jwt'}, ...authConfig }) ------------------------------------------- auth.ts. export { GET , POST } from '@/auth'; Is it correct
This is the only NextAuth video that should be on the internet. Went through loads of videos and this is the only one that makes sense. Even reading the documentation now makes sense as well.
Auth.js 5 has been really confusing with all the changes ill be sure to follow this series. keep up the great work
Thank you Bernard for the sub and awesome support! I will be releasing part 2 tomorrow which will go over the Credentials and Google Provider.
@@brettwestwooddeveloper Deployment?
Perfect tuturial very good and very good expaind. thanks.
Thank you!
Thanks for doing this! It’s good to see the process again with the latest version
No problem, glad you are enjoying it!
Thank you sir
Much needed
No problem!
When is the final video coming?
Add role based access control into the next video
For role based, do you just save your roles with the user in database? Like a field in the schema? Then you can pass through to JWT token
I code along the video. Auth.ts is giving error. GET and POST are not exporting.
Thanks for watching and make sure you destructured it from the handler just like I did
did you end up solving the issue?
No the issue is still there
auth.ts
export const {auth, handlers: {GET,POST}, signIn, signOut} = NextAuth({
adapter: PrismaAdapter(prisma),
session: {strategy: 'jwt'},
...authConfig
})
-------------------------------------------
auth.ts.
export { GET , POST } from '@/auth';
Is it correct
@@code-o-matic Can you join discord so you can send screenshots?