How do I handle auth in this case?
source link: https://dev.to/shubham2270/can-anyone-help-me-on-how-do-i-handle-auth-2pd7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How do I handle auth in this case?
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?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK