How do I handle auth in this case?
Shubham Kumar

Shubham Kumar @shubham2270

About: Frontend Developer | React.js | JavaScript 😎

Joined:
Oct 19, 2018

How do I handle auth in this case?

Publish Date: Dec 24 '21
1 0

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?

Comments 0 total

    Add comment