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 #1216
  • Loading branch information
balazsorban44 committed Feb 1, 2021
1 parent ad3b0b6 commit d7e78d5
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 d7e78d5

Please sign in to comment.