IDKitWidget
component to your site. The values for the app_id
and action
props were obtained from the Developer Portal in Getting Started. We’ll define the handleVerify
and onSuccess
callbacks next.
handleVerify
callback is called when the user’s proof is received. This will send the proof to your backend for verification:
handleVerify
callback sends the proof to your backend for verification. In the backend handler should verify the proof with the Developer Portal API:
onSuccess
callback is called when the user closes the modal. This is where you can perform any necessary actions, such as redirecting the user to a new page.
sessionURI
to the user eg. with a QR coderesult
proof in your backend.errorCode