Skip to content

zidane-ui/auth/headless

import { … } from 'zidane-ui/auth/headless'ui/src/auth/headless/index.ts

Interfaces#

SignInFlowInterface#

A browser sign-in in progress: its state, and the ways to answer it or stop it.

TypeScript
interface SignInFlow
SignInFlow properties
NameTypeDescription
cancel() => void

Stops the sign-in.

stateReadable<OnboardingSignInState>

Where the sign-in is. done and error end it.

submit?(text: string) => void

Answers a prompt, or passes a pasted redirect URL or code. Absent: the flow takes no input.

ui/src/auth/headless/sign-in.ts:10