1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 22:56:49 +09:00

spec(SSO/JWT): トークンの有効期限を2週間に変更 (MisskeyIO#746)

This commit is contained in:
あわわわとーにゅ 2024-10-18 08:39:19 +09:00 committed by GitHub
parent f9eb205dc8
commit 14d71e2064
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,7 +203,7 @@ export class JWTIdentifyProviderService {
.setIssuer(ssoServiceProvider.issuer)
.setAudience(ssoServiceProvider.audience)
.setIssuedAt()
.setExpirationTime('10m')
.setExpirationTime('2w')
.setJti(randomUUID())
.setSubject(user.id)
.encrypt(key);
@ -220,7 +220,7 @@ export class JWTIdentifyProviderService {
.setIssuer(ssoServiceProvider.issuer)
.setAudience(ssoServiceProvider.audience)
.setIssuedAt()
.setExpirationTime('10m')
.setExpirationTime('2w')
.setJti(randomUUID())
.setSubject(user.id)
.sign(key);