Next.js Discord

Discord Forum

Google Login using NextAuth js

Unanswered
Silver posted this in #help-forum
Open in Discord
SilverOP
I'm using NextAuth with Google login in my FastAPI project. After users log in, I want to save their info in my database. I set up callbacks to handle this, and it works. But when I switch tabs and come back, it sends another request to my server to save the info again. I need this because I store a user token in local storage and in every request I am passing through it to authorize the user. How can I make this process smoother with NextAuth and FastAPI?

0 Replies