Learn a pattern to implement secure cookie-based authentication in a Next.js app with a NestJS backend. Get access to the full course here: michaelguay.de... UI: github.com/mgu... Backend: github.com/mgu...
thank you so much, i'm currently working on a same tech stack. I utilized the auth.js for the authentication, but your approach is so simple and straightforward, I think I will rewrite the authentication flow with your solution. :)
Wow this is what I am looking for, this is easier to understand more than anything , Could you please extend this more with social login that already authenticated from backend.
Thanks you so much. I was struggling on setting cookies on the browser. I have a route for refreshing the tokens. When an end point throws unauthorised error, I want to call the refresh-tokens end point and set the updated cookie on the browser. Can you help me with this? I am facing problem like next js doesn’t allow modification of cookies outside server actions or api routes
Thanks for ur explanation but I have a question about auth with google or another oauth2 when i use nest and next i get a error in cookies firefox browser block my site as tracking please if you have any solution to implement logic