diff --git a/webapp/api/oauth/_middleware.ts b/webapp/api/oauth/_middleware.ts index a857f71..30d97ac 100644 --- a/webapp/api/oauth/_middleware.ts +++ b/webapp/api/oauth/_middleware.ts @@ -4,7 +4,7 @@ import { HonoEnv } from 'load-context' const AUTHORIZATION_REGEX = /^Bearer (.+)$/ export const authMiddleware: MiddlewareHandler = async (c, next) => { - const authorization = c.req.header('Authroization') + const authorization = c.req.header('Authorization') const accessToken = authorization?.match(AUTHORIZATION_REGEX)?.[1] if (!accessToken) { return c.text('Unauthorized', 401)