# zidane-ui/auth/headless

Import: `import { … } from 'zidane-ui/auth/headless'`. Source: [ui/src/auth/headless/index.ts](https://github.com/Tahul/zidane/blob/main/ui/src/auth/headless/index.ts).

## Interfaces

### `SignInFlow`

Interface.

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

```ts
interface SignInFlow
```

**Properties**

- `cancel` (`() => void`): Stops the sign-in.
- `state` (`Readable<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.

Source: [ui/src/auth/headless/sign-in.ts:10](https://github.com/Tahul/zidane/blob/main/ui/src/auth/headless/sign-in.ts#L10)
