Complete guide for implementing webview-based identity verification with advanced configurations and best practices
https://gateway-result.vercel.app/{your_client_id}/callback
as your redirect URI for quick testing without setting up a backend.redirect_uri
parameter is omitted from the verification URL, hConnect automatically uses the first URI in your whitelist. Order
your URIs strategically with your primary URI first.Parameter | Required | Description | Example |
---|---|---|---|
client_id | Yes | Your hConnect Client ID | 5SZdu0fn |
redirect_uri | No | Callback URL (must be whitelisted). If omitted, uses first whitelisted URI | https://yourapp.com/callback |
code_challenge | No | PKCE code challenge for enhanced security | E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM |
code_challenge_method | No | Method used to generate code challenge (only S256 supported) | S256 |
Parameter | Description |
---|---|
code | Authorization code (valid for 5 minutes, single use) |
error | Error code (see error handling section) |
error_description | Human-readable error message |
Claim | Type | Description | Example |
---|---|---|---|
iss | string | Token issuer (always “hopae”) | "hopae" |
sub | string | Unique user identifier | "wPqH84Q4pDiE..." |
aud | string | Your Client ID | "5SZdu0fn" |
eid | string | Provider type identifier | "bankidse" |
provider_id | string | Provider-specific user ID | "198507124567" |
name | string | Full name | "Anders Eriksson" |
given_name | string | First name | "Anders" |
family_name | string | Last name | "Eriksson" |
birthdate | string | Date of birth (YYYY-MM-DD) | "1985-07-12" |
iat | number | Issued at (Unix timestamp) | 1755611261 |
exp | number | Expiration (Unix timestamp) | 1755614861 |
sub
, name
, and eid
are guaranteed. Always implement fallbacks for optional fields.Invalid Redirect URI Error
Token Exchange Failures
Mobile WebView Issues