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)
|
.setIssuer(ssoServiceProvider.issuer)
|
||||||
.setAudience(ssoServiceProvider.audience)
|
.setAudience(ssoServiceProvider.audience)
|
||||||
.setIssuedAt()
|
.setIssuedAt()
|
||||||
.setExpirationTime('10m')
|
.setExpirationTime('2w')
|
||||||
.setJti(randomUUID())
|
.setJti(randomUUID())
|
||||||
.setSubject(user.id)
|
.setSubject(user.id)
|
||||||
.encrypt(key);
|
.encrypt(key);
|
||||||
@ -220,7 +220,7 @@ export class JWTIdentifyProviderService {
|
|||||||
.setIssuer(ssoServiceProvider.issuer)
|
.setIssuer(ssoServiceProvider.issuer)
|
||||||
.setAudience(ssoServiceProvider.audience)
|
.setAudience(ssoServiceProvider.audience)
|
||||||
.setIssuedAt()
|
.setIssuedAt()
|
||||||
.setExpirationTime('10m')
|
.setExpirationTime('2w')
|
||||||
.setJti(randomUUID())
|
.setJti(randomUUID())
|
||||||
.setSubject(user.id)
|
.setSubject(user.id)
|
||||||
.sign(key);
|
.sign(key);
|
||||||
|
Loading…
Reference in New Issue
Block a user