From a910e5dc174e431e6722ee783a366217599dd417 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sun, 7 Aug 2022 09:57:18 -0700 Subject: [PATCH] Revert "Revert "Fix a bug with expiration of refresh and custom tokens"" This reverts commit 012b67e3c549de14a7658c525ef4b91e6c5277fc. --- web/lib/firebase/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/lib/firebase/auth.ts b/web/lib/firebase/auth.ts index b363189c..5363aa08 100644 --- a/web/lib/firebase/auth.ts +++ b/web/lib/firebase/auth.ts @@ -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]