From 7709c1efde9a1f3078171ee56985cd25511d6f7b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 1 Dec 2023 11:36:35 -0800 Subject: biome formatter --- lib/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/auth.js') diff --git a/lib/auth.js b/lib/auth.js index 55de6df0..0e96218a 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -7,7 +7,7 @@ export const optional = { preValidation: fastifyPassport.authenticate( "jwt", { session: false }, - function(req, res, err, user, info) { + function (req, res, err, user, info) { req.user = user; } ) @@ -29,7 +29,7 @@ export const jwtStrategy = new jwt.Strategy( { jwtFromRequest: jwt.ExtractJwt.fromExtractors([ jwt.ExtractJwt.fromAuthHeaderAsBearerToken(), - req => (req.cookies ? req.cookies.token : null) + (req) => (req.cookies ? req.cookies.token : null) ]), secretOrKey: config.jwt }, -- cgit v1.2.3