Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Dec 17, 2024
1 parent 3bbec15 commit fe38923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/api/oauth/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HonoEnv } from 'load-context'
const AUTHORIZATION_REGEX = /^Bearer (.+)$/

export const authMiddleware: MiddlewareHandler<HonoEnv> = 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)
Expand Down

0 comments on commit fe38923

Please sign in to comment.