Fix a bug with expiration of refresh and custom tokens
This commit is contained in:
parent
1f8aef2891
commit
abd344b951
|
@ -7,8 +7,8 @@ const TEN_YEARS_SECS = 60 * 60 * 24 * 365 * 10
|
||||||
const TOKEN_KINDS = ['refresh', 'id', 'custom'] as const
|
const TOKEN_KINDS = ['refresh', 'id', 'custom'] as const
|
||||||
const TOKEN_AGES = {
|
const TOKEN_AGES = {
|
||||||
id: ONE_HOUR_SECS,
|
id: ONE_HOUR_SECS,
|
||||||
refresh: ONE_HOUR_SECS,
|
refresh: TEN_YEARS_SECS,
|
||||||
custom: TEN_YEARS_SECS,
|
custom: ONE_HOUR_SECS,
|
||||||
} as const
|
} as const
|
||||||
export type TokenKind = typeof TOKEN_KINDS[number]
|
export type TokenKind = typeof TOKEN_KINDS[number]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user