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:
parent
f9eb205dc8
commit
14d71e2064
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user