Skip to content

Commit ebffd60

Browse files
committed
fix(oauth2): make internal code ttl the same as access token
1 parent 1d378a0 commit ebffd60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oauth2/oauth2.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class Oauth2Service {
175175
this.cacheManager.set(
176176
Oauth2Service.getOAuthCodeKey(code),
177177
user.email,
178-
120_000,
178+
this.jwtService.accessTime * 1000,
179179
),
180180
);
181181

0 commit comments

Comments
 (0)