diff --git a/apps/api/src/middleware/auth.ts b/apps/api/src/middleware/auth.ts index 6893a72..df2da38 100644 --- a/apps/api/src/middleware/auth.ts +++ b/apps/api/src/middleware/auth.ts @@ -416,6 +416,10 @@ export const requireEmailVerified = async (req: Request, res: Response, next: Ne try { const auth = res.locals.auth as AuthResponse; + if (auth.type === 'apiKey') { + return next(); + } + if (!auth.userId) { throw new NotAuthenticated(); }