React Integration
Use the React SDK for a seamless integration with hooks, components, and context.
Installation
Terminalbash
Loading...
Provider Setup
Wrap your app with the OwlEyesProvider:
app/layout.tsxtsx
Loading...
useVerification Hook
The primary hook for starting and managing verifications:
VerifyButton.tsxtsx
Loading...
Verification Component
For more control, use the Verification component:
VerificationPage.tsxtsx
Loading...
Modal Component
Use VerificationModal for an overlay experience:
VerifyWithModal.tsxtsx
Loading...
With Server Sessions
For production, create sessions on your backend and pass the token:
SecureVerification.tsxtsx
Loading...
Best Practice
Always verify results on your backend via webhooks. Client-side results can be manipulated by malicious users.Customizing Appearance
CustomizedVerification.tsxtsx
Loading...
TypeScript Types
types.tstypescript
Loading...