From 99d1a1efbd4a59c66f120de09d13332866b7613e Mon Sep 17 00:00:00 2001 From: myl7 Date: Thu, 4 Aug 2022 05:24:30 +0000 Subject: [PATCH] remove duplicate slashes for auth token path --- pages/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/index.ts b/pages/api/index.ts index 512bd5d..2c87feb 100644 --- a/pages/api/index.ts +++ b/pages/api/index.ts @@ -90,7 +90,7 @@ export function getAuthTokenPath(path: string) { for (let r of protectedRoutes) { r = r.toLowerCase().replace(/\/$/, '') + '/' if (path.startsWith(r)) { - authTokenPath = `${r}/.password` + authTokenPath = `${r}.password` break } }