Function: useVerifier()
typescript
1
useVerifier(): AgentContextType & object
Defined in: hooks/index.ts:389
Hook for accessing credential verification context and operations.
Provides functionality for requesting and verifying credential presentations from holders. This hook must be used within a VerifierProvider and requires a running agent.
Returns
Verifier context containing:
agent
: Current Agent instance or null if not runningstart
: Async function to start the agent for verification operationsstop
: Async function to stop the agentstate
: Current agent state stringissuePresentationRequest
: Send presentation requests to credential holdersverifyPresentation
: Verify and validate received credential presentations
Throws
When used outside of VerifierProvider