PrivoraProvider
Provider component that wraps your app to provide Privora state to all child components.Props
Example
PrivoraContext
The React context object. Typically you’ll use the hooks below instead of accessing this directly.usePrivoraContext
Hook to access the full Privora context. Must be used within aPrivoraProvider.
Return Value
Example
Throws
Throws an error if used outside of aPrivoraProvider.
usePrivoraInstance
Hook to access just the Privora instance from context.null if Privora is not initialized or if used outside a provider.
Example
useUserCrypto
Hook to access just the UserCrypto instance from context.null if Privora is not initialized or if used outside a provider.
Example
useUserKeypair
Hook to access the user’s derived keypair from context.null if Privora is not initialized or if used outside a provider.