Interface: GateProps
Defined in: components/Gate.tsx:40
Properties
check?
optionalcheck?: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?
optionalfallback?: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?
optionalloading?: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?
optionalonAccess?: (result) =>void
Defined in: components/Gate.tsx:54
Called after the full gate flow completes
Parameters
result
GateResult
Returns
void
sync?
optionalsync?:any
Defined in: components/Gate.tsx:48
Sync callback passed to sdk.gate() when the full gate flow is triggered