AuthFromEnvOptions
Defined in: src/cli/index.ts:101
Options for buildAuthFromEnv.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Action extends string |
string |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
defaultRole? |
string |
Default AUTH_ROLE. Default "admin". |
src/cli/index.ts:107 |
env? |
Env |
- | src/cli/index.ts:108 |
name? |
string |
Log prefix for warnings. Default "xtandard". |
src/cli/index.ts:112 |
realm |
string |
The WWW-Authenticate realm, e.g. "xtandard-webhooks". |
src/cli/index.ts:103 |
roles |
RolesAuthorizationOptions<Action> |
The roles provider used with AUTH_MODE=basic (the product’s policy and actions). |
src/cli/index.ts:105 |
warn? |
(line) => void |
Where warnings go. Default: stderr. | src/cli/index.ts:110 |