normalizeAuthModeSetting
normalizeAuthModeSetting(
value):AuthMode|null
Defined in: src/auth-mode.ts:32
Normalize an arbitrary value (env var, DB row, request body) to a valid AuthMode, or null if the value is unrecognised / wrong type. Accepted: “subscription”, “api-key”. Everything else → null.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”AuthMode | null