2

How do I handle auth in this case?

 2 years ago
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.
neoserver,ios ssh client

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?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK