aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auth.ts')
-rw-r--r--lib/auth.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/auth.ts b/lib/auth.ts
index 79c04e9d..c2eca6d4 100644
--- a/lib/auth.ts
+++ b/lib/auth.ts
@@ -50,8 +50,7 @@ export const jwtStrategy = new jwt.Strategy(
let { id } = payload;
const wl = { GET: ["/invoice", "/payments"], POST: ["/invoice"] };
- if (id.endsWith("-ro") && wl[m].some((p) => u.startsWith(p)))
- id = id.slice(0, -3);
+ if (id.endsWith("-ro") && wl[m].some((p) => u.startsWith(p))) id = id.slice(0, -3);
const user = await getUser(id);
next(null, user);