mirror of
https://github.com/docmost/docmost.git
synced 2025-11-24 08:21:14 +10:00
chore: fix linting (#544)
* fix: eslint (server) * fix: eslint (client) * commit package lock file * fix linting
This commit is contained in:
@ -24,7 +24,9 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
|
||||
|
||||
try {
|
||||
accessToken = JSON.parse(req.cookies?.authTokens)?.accessToken;
|
||||
} catch {}
|
||||
} catch {
|
||||
throw new BadRequestException('Failed to parse access token');
|
||||
}
|
||||
|
||||
return accessToken || this.extractTokenFromHeader(req);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user