Skip to content

VexAuthProvider

VexAuthProvider(props): Element

Defined in: packages/react/src/auth/VexAuthContext.tsx:26

Seeds VexAuthContext with the server-resolved caller for the client tree beneath it, so useVexAuth/usePermission see the same { user, organization } without an extra round trip.

The resolved caller to provide, and the subtree that consumes it.

ReactNode

VexApiAuth

Element

The context provider wrapping props.children.