Update token verification and fix typo (#2889)

* Update token verification and fix typo

* Fix typo
This commit is contained in:
martmull
2023-12-08 17:42:08 +01:00
committed by GitHub
parent a48c9293f6
commit 9b7d7b29ed
10 changed files with 64 additions and 82 deletions

View File

@ -60,7 +60,7 @@ export class JwtAuthStrategy extends PassportStrategy(Strategy, 'jwt') {
);
assert(
apiKey.length === 1 && !apiKey[0].revokedAt,
apiKey.length === 1 && !apiKey?.[0].revokedAt,
'This API Key is revoked',
ForbiddenException,
);