Thanks you so much. This tutorial was exactly what i wanted. Can you also provide a tutorial on authentication with google provider? Also how to implement the my profile page.
As login and register route both comes under authentication, to group the route I have used auth folder (auth). It organize routes without affecting the URL.
sorry please i see you tutorial and i can't do the session get other variables only show email, on user object. if you can help me where is the crucial configuration to get id and username on my session.user object?, i actually have the same code like you in [...nextauth] file. i asign values from user to token, and from token to session and return session but still haved only email on session. i am using prisma for ORM. and postgresSQL for DB. thank for video new subscribe.