Browse Source

Add guard

pull/4015/head
Thomas Kaul 10 months ago
parent
commit
6f23b384f3
  1. 2
      apps/api/src/app/auth/jwt.strategy.ts

2
apps/api/src/app/auth/jwt.strategy.ts

@ -60,7 +60,7 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
); );
} }
} catch (error) { } catch (error) {
if (error?.getStatus() === StatusCodes.TOO_MANY_REQUESTS) { if (error?.getStatus?.() === StatusCodes.TOO_MANY_REQUESTS) {
throw error; throw error;
} else { } else {
throw new HttpException( throw new HttpException(

Loading…
Cancel
Save