Skip to content

JwtStrategy

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/api/src/auth/strategies/jwt.strategy.ts

Extends: PassportStrategy(Strategy)

Methods

MethodSignatureReturns
validatevalidate(payload: JwtPayload)Promise<JwtPayload>

Where it refuses work

  • JwtStrategy stops the work with UnauthorizedException when !user — “User not found”.
  • JwtStrategy stops the work with UnauthorizedException when !user.isActive — “Account is deactivated”.

Referenced By

  • AuthModule (MODULE_PROVIDES)

Was this page helpful?

Download as PDF