Skip to main content

Variable: SetupRedeemRequest

const SetupRedeemRequest: TObject<{ code: TString; }>

Defined in: packages/contracts/src/setup-api.ts:205

POST /setup/api/session request: the installer's code.

The one field in the consoles that takes a secret itself. Deliberately loose: the service removes spaces, line breaks and hyphens and ignores case before it compares, so a code pasted with the file's trailing newline is the code. A string that is not a code at all is answered as a wrong code, not as a malformed request, so the two cannot be told apart by an attacker either.