NextAuth + GitHub Provider refresh
is anyone using NextAuth with the GitHub provider in a real app?
From what I understand, sessions don't get renewed properly after a few hours unless you make some changes, see:
- https://next-auth.js.org/providers/github
- https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/refreshing-user-to-server-access-tokens#response
Is the only required change to add the
refresh_token_expires_in
to the Account
model, or does it require anything else?2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I am also looking into how to get github auth working with next auth. Any advice ?