Frontend Integration
Pre-requisites
Generate your access tokens before proceeding:
Generate AccessTokensOptionally, generate KYC sessionId
as well.
Widget Integration
You'll need to generate a Widget URL and insert it into a DOM element. Additionally, you can monitor events triggered by the widget on your webpage to showcase either success or failure. Once the user completes the KYC process successfully, you'll receive an idToken
, which can be utilised to request the user's data/credentials from the KYC server.
Forming Widget URL
The Widget URL has three query params:
kycAccessToken
: KYC Access TokenssiAccessToken
: SSI Access TokensessionId
: KYC Session Id
The final Widget URL format would look something like this:
Invoking the widget
You can invoke the Hypersign KYC widget through popup from your page
Listening to events
You can listen to events thrown by the widget to get the result of verification.
You can only obtain status of verification through events. But in order to get user data, developers need to configure the webhook on their KYC dashboard.
WebhookLast updated