DEV Community

Shubham Kumar
Shubham Kumar

Posted on

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?

Top comments (0)

Cloudinary image

Zoom pan, gen fill, restore, overlay, upscale, crop, resize...

Chain advanced transformations through a set of image and video APIs while optimizing assets by 90%.

Explore

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay