Setuping NextAuth with Go Backend
If I am using NextAuth with Google login, how can I authenticate the user on a separate Go backend's API requests?
1 Reply
I'd consider app to app authentication.
Have a jwt token saved on the nextjs env which signs the requests to the go backend. And have a verification logic on your go backend.