From the backend, I'm getting a URL for Google login which looks something like this: 'https://somewebsite.com/api/v1/auth/login/google
clicking on this opens google login page & after login, it returns access_token.
I was thinking to use the NextAuth library for it https://next-auth.js.org/providers/google but it requires client_id & client_secret also which is not required in my case (it's being handled in the backend).
How do I handle this login using NextAuth or any other bettor method someone can suggest?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)