Next.js Discord

Discord Forum

How to implement oauth without using any additional authorization frameworks?

Unanswered
Bedlington Terrier posted this in #help-forum
Open in Discord
Avatar
Bedlington TerrierOP
I want to implement “Login with Google” in my app. I have a backend built with Rust that currently handles standard email and password login. It generates a JWT token, which is then set as an HttpOnly cookie by the app. I’ve already set up middleware to check for authorized routes and handle authentication. Now, I want to add Google login, but I don’t want to change my existing setup because it’s simple and works best for me

Would it be a good idea to use this package?
https://www.npmjs.com/package/@react-oauth/google

1 Reply

Avatar
looks good to me. what is your concern?