AuthProvider
Defined in: src/auth/contract.ts:20
Authenticates an incoming web-standard Request.
Methods
Section titled “Methods”authenticate()
Section titled “authenticate()”authenticate(request): Promise<Principal | null>;Defined in: src/auth/contract.ts:22
Resolve the principal, or null if the request is unauthenticated.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
Request |
Returns
Section titled “Returns”Promise<Principal | null>
challenge()?
Section titled “challenge()?”challenge?(request): Response | undefined;Defined in: src/auth/contract.ts:27
Optional: build a Response that prompts for credentials (e.g. a 401 with a
WWW-Authenticate header). When omitted, the server returns a plain 401.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
Request |
Returns
Section titled “Returns”Response | undefined