Update token verification and fix typo (#2889)
* Update token verification and fix typo * Fix typo
This commit is contained in:
@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user