Skip to content

Commit

Permalink
fix: leave accessTokenExpires as null
Browse files Browse the repository at this point in the history
Forwarding expires_in as is to accessTokenExpires has shown to cause issues with Prisma, and maybe with other flows as well. Setting it back to `null` for now. We still forward `expires_in`, so users can use it if they want to.

Fixes nextauthjs#1216
  • Loading branch information
mnphpexpert committed Feb 1, 2021
1 parent 42ee58e commit 1a3f266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/lib/oauth/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async function getOAuth2AccessToken (code, provider, codeVerifier) {

resolve({
accessToken,
accessTokenExpires: raw.expires_in ?? null,
accessTokenExpires: null,
refreshToken: raw.refresh_token,
idToken: raw.id_token,
...raw
Expand Down

0 comments on commit 1a3f266

Please sign in to comment.