From c56172184930eaf7b40b7b6c358c065f7b117965 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 19 Jul 2022 09:00:51 -0600 Subject: [PATCH] Replace all => replace with regexp --- web/lib/firebase/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/firebase/auth.ts b/web/lib/firebase/auth.ts index 8a579764..b6daea6e 100644 --- a/web/lib/firebase/auth.ts +++ b/web/lib/firebase/auth.ts @@ -6,7 +6,7 @@ const TOKEN_KINDS = ['refresh', 'id'] as const type TokenKind = typeof TOKEN_KINDS[number] const getAuthCookieName = (kind: TokenKind) => { - const suffix = `${PROJECT_ID}_${kind}`.toUpperCase() + const suffix = `${PROJECT_ID}_${kind}`.toUpperCase().replace(/-/g, '_') return `FIREBASE_TOKEN_${suffix}` }