Skip to content

Commit

Permalink
style: change err to error for code consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Nov 12, 2024
1 parent 8c0f736 commit acecf19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/auth.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const firebaseAuthMiddleware: RequestHandler = async (

// Validating the token.
await auth.verifyIdToken(token);
} catch (err) {
logger.debug(`Failed to verify token: ${err}`);
} catch (error) {
logger.debug(`Failed to verify token: ${error}`);

res.status(401).json({ status: "fail", message: "Token is not valid" });
return;
Expand Down

0 comments on commit acecf19

Please sign in to comment.