(enabled: boolean)
| 22 | * Used for server/headless deployments where same-origin assumption doesn't hold. |
| 23 | */ |
| 24 | export function setRequireAuth(enabled: boolean): void { |
| 25 | requireAuthEnabled = enabled |
| 26 | } |
| 27 | |
| 28 | // Compare via HMAC digests (fixed 32-byte length) to avoid leaking token length |
| 29 | const hmacKey = randomBytes(32) |
no outgoing calls
no test coverage detected