> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# jwt-weak-secret-literal

> JWT signing or verification uses a short (< 32 chars) or weak literal secret susceptible to brute-force forgery.

## What it flags

JWT signing or verification uses a short (\< 32 chars) or weak literal secret susceptible to brute-force forgery.

Only calls that resolve to a supported JWT library are checked: `jsonwebtoken`, `jose`, `@nestjs/jwt` and `hono/jwt`. Local `sign` or `verify` helpers with the same names are not reported. For NestJS `JwtService` calls, only `secret` in the options argument is checked, so a string payload is not treated as the key, and options with a spread or computed key are skipped.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "jwt-weak-secret-literal": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.