Skip to main content

Interface: AuthContext

Defined in: src/core/auth.ts:66

What request() passes to AuthProvider.apply and AuthProvider.refresh.

Remarks​

transport is the family's resolved transport, so a provider's own login / mint call goes through the same user-configured transport without re-entering auth.

Properties​

family​

family: string

Defined in: src/core/auth.ts:68

Family stem the request belongs to (e.g. "nfl_api").


request?​

optional request?: TransportRequest

Defined in: src/core/auth.ts:75

On refresh only: the request (before auth was applied) whose credentials failed, so a provider holding several sessions refreshes the one it used.


transport​

transport: Transport

Defined in: src/core/auth.ts:70

The family's transport — use it for login / token calls (it bypasses auth).