Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TinsFox committed Nov 1, 2024
1 parent 26758fa commit c08365c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/auth-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Context, Next } from "hono"
const authWhiteList = ["/api/auth/login", "/api/auth/register", "/api/seed"]

export const authMiddleware = (c: Context, next: Next) => {
if (authWhiteList.includes(c.req.path)) {
if (authWhiteList?.includes(c.req.path)) {
return next()
}
const jwtMiddleware = jwt({
Expand Down

0 comments on commit c08365c

Please sign in to comment.