Skip to content

AuthFlow

Defined in: core/src/auth/flows.ts:35

One vendor’s two operations: sign in once, then renew.

refresh(credential): Promise<Credential>;

Defined in: core/src/auth/flows.ts:39

Trades the stored credential for a fresh one. Both tokens may rotate, so save the result before you use it.

Parameter Type
credential Credential

Promise<Credential>


signIn(signal, onPrompt): Promise<Credential>;

Defined in: core/src/auth/flows.ts:36

Parameter Type
signal AbortSignal
onPrompt (prompt) => void

Promise<Credential>