Skip to content

Commit 4a8da44

Browse files
fix: leave accessTokenExpires as null
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
1 parent 7dc147a commit 4a8da44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/lib/oauth/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async function getOAuth2AccessToken (code, provider, codeVerifier) {
169169

170170
resolve({
171171
accessToken,
172-
accessTokenExpires: raw.expires_in ?? null,
172+
accessTokenExpires: null,
173173
refreshToken: raw.refresh_token,
174174
idToken: raw.id_token,
175175
...raw

0 commit comments

Comments
 (0)