diff options
Diffstat (limited to '')
| -rw-r--r-- | apps/web/app/api/auth/[...nextauth]/route.tsx (renamed from packages/web/app/api/auth/[...nextauth]/route.tsx) | 0 | ||||
| -rw-r--r-- | apps/web/app/api/trpc/[trpc]/route.ts (renamed from packages/web/app/api/trpc/[trpc]/route.ts) | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/packages/web/app/api/auth/[...nextauth]/route.tsx b/apps/web/app/api/auth/[...nextauth]/route.tsx index 2f7f1cb0..2f7f1cb0 100644 --- a/packages/web/app/api/auth/[...nextauth]/route.tsx +++ b/apps/web/app/api/auth/[...nextauth]/route.tsx diff --git a/packages/web/app/api/trpc/[trpc]/route.ts b/apps/web/app/api/trpc/[trpc]/route.ts index b6753101..02ca966d 100644 --- a/packages/web/app/api/trpc/[trpc]/route.ts +++ b/apps/web/app/api/trpc/[trpc]/route.ts @@ -21,7 +21,7 @@ const handler = (req: Request) => // Check if the request has an Authorization token, if it does, assume that API key authentication is requested. const authorizationHeader = opts.req.headers.get("Authorization"); if (authorizationHeader && authorizationHeader.startsWith("Bearer ")) { - const token = authorizationHeader.split(" ")[1]; + const token = authorizationHeader.split(" ")[1]!; try { const user = await authenticateApiKey(token); return { user, db }; |
