Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/shared/modules/global/jwt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,6 @@ export class JwtService implements OnModuleInit {

const payload = decoded.payload as JwtPayloadRecord;

if (process.env.NODE_ENV !== 'production') {
// TODO (security): CRITICAL - JWT signature verification is skipped entirely in non-production (NODE_ENV !== 'production'). Any token with a valid structure will be accepted. This must never reach a publicly accessible environment.
return payload;
}

const issuer = this.resolveIssuer(payload);
const keyId =
decoded.header && typeof decoded.header.kid === 'string'
Expand Down
Loading