From 012b67e3c549de14a7658c525ef4b91e6c5277fc Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sun, 7 Aug 2022 09:56:42 -0700 Subject: [PATCH] Revert "Fix a bug with expiration of refresh and custom tokens" This reverts commit abd344b951ebafc22d701d15f0b6b210ee93dd2c. --- 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 5363aa08..b363189c 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: TEN_YEARS_SECS, - custom: ONE_HOUR_SECS, + refresh: ONE_HOUR_SECS, + custom: TEN_YEARS_SECS, } as const export type TokenKind = typeof TOKEN_KINDS[number]