Browse Packages

Interface: GateProps

Defined in: components/Gate.tsx:40

Properties

check?

optional check?: any

Defined in: components/Gate.tsx:46

Local check function — runs on mount to determine access silently


children

children: ReactNode

Defined in: components/Gate.tsx:56

Rendered when access is granted


fallback?

optional fallback?: ReactNode

Defined in: components/Gate.tsx:50

Rendered when access is denied. Gets GateContext so it can call trigger().


flow

flow: string

Defined in: components/Gate.tsx:44

Flow slug to present when the gate fails


loading?

optional loading?: ReactNode

Defined in: components/Gate.tsx:52

Rendered while the initial check is running


name

name: string

Defined in: components/Gate.tsx:42

Unique gate name


onAccess?

optional onAccess?: (result) => void

Defined in: components/Gate.tsx:54

Called after the full gate flow completes

Parameters

result

GateResult

Returns

void


sync?

optional sync?: any

Defined in: components/Gate.tsx:48

Sync callback passed to sdk.gate() when the full gate flow is triggered

Feature detail