Skip to main content

Function: requiresExpectedToken()

requiresExpectedToken(environment): boolean

Defined in: packages/key-custodian/src/policy.ts:181

Whether this environment class must name the token it expects. True for production only: there the allowlist is what refuses a token nobody procured, and a deployment that leaves it out is refused at start rather than trusted on the denylist alone.

Parameters​

environment​

"staging" | "development" | "ci" | "integration" | "production"

Returns​

boolean