Next.js Discord

Discord Forum

Next-Auth v4 empty user session with basic GoogleProvider and rotating refresh token.

Unanswered
Devon Rex posted this in #help-forum
Open in Discord
Avatar
Devon RexOP
As stated in the title, I'm getting an empty use object as a session throughout my app.

I am following the exact rotating token code here:
https://authjs.dev/guides/basics/refresh-token-rotation

I have also added the session: { strategy: 'jwt' }

Regular GoogleProvider jwt without refresh token rotation code works fine.

And session pulled into component as so:
const { data: session, status } = useSession();

Any help is appreciated!

0 Replies