AuthFlow
Defined in: core/src/auth/flows.ts:35
One vendor’s two operations: sign in once, then renew.
Methods
Section titled “Methods”refresh()
Section titled “refresh()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
credential |
Credential |
Returns
Section titled “Returns”Promise<Credential>
signIn()
Section titled “signIn()”signIn(signal, onPrompt): Promise<Credential>;Defined in: core/src/auth/flows.ts:36
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
signal |
AbortSignal |
onPrompt |
(prompt) => void |
Returns
Section titled “Returns”Promise<Credential>