Revert "Revert "Fix a bug with expiration of refresh and custom tokens""

This reverts commit 012b67e3c5.
This commit is contained in:
Austin Chen 2022-08-07 09:57:18 -07:00
parent 012b67e3c5
commit a910e5dc17

View File

@ -7,8 +7,8 @@ const TEN_YEARS_SECS = 60 * 60 * 24 * 365 * 10
const TOKEN_KINDS = ['refresh', 'id', 'custom'] as const
const TOKEN_AGES = {
id: ONE_HOUR_SECS,
refresh: ONE_HOUR_SECS,
custom: TEN_YEARS_SECS,
refresh: TEN_YEARS_SECS,
custom: ONE_HOUR_SECS,
} as const
export type TokenKind = typeof TOKEN_KINDS[number]