diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
| commit | ad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch) | |
| tree | fbf2a59f81771b2938f474c8e7b35a497d2960e4 /lib/auth.ts | |
| parent | 9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff) | |
| download | coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip | |
formatting
Diffstat (limited to 'lib/auth.ts')
| -rw-r--r-- | lib/auth.ts | 3 |
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); |
