# JwtStrategy

**Kind:** Class

**Source:** [`atloria-monorepo/apps/api/src/auth/strategies/jwt.strategy.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/auth/strategies/jwt.strategy.ts#L10)

**Extends:** `PassportStrategy(Strategy)`

## Methods

| Method | Signature | Returns |
|---|---|---|
| `validate` | `validate(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)
