Select mode
Let the user choose between bank verification and document verification.
Select mode lets the user choose how to verify: sign in to their bank (IVS), or scan a government ID (DVS).
Use this when you want the widest possible coverage. Users who don't bank with a participating institution can still verify with a document.
Scope
openid general_scope
Your exact scope string is set during onboarding.
How it works
- You start a verification as described in Step 2.
- Hub shows the user both options.
- The user picks one and completes it.
- You collect the results from the userinfo endpoint.
You don't choose the method, and you don't know in advance which the user will pick.
The important part: two possible response shapes
Because the user chooses, your code must handle both response shapes. This is the main thing that separates a Select mode integration from a single-mode one.
Check the source claim first:
claims = get_userinfo(access_token)
if claims["source"] == "bank":
# IVS - see mode-ivs
handle_bank_result(claims)
else:
# DVS - source is the document type, e.g. "driving_licence"
handle_document_result(claims)const claims = await getUserinfo(accessToken);
if (claims.source === "bank") {
// IVS - see mode-ivs
handleBankResult(claims);
} else {
// DVS - source is the document type, e.g. "driving_licence"
handleDocumentResult(claims);
}JsonNode claims = getUserinfo(accessToken);
if (claims.path("source").asText().equals("bank")) {
// IVS - see mode-ivs
handleBankResult(claims);
} else {
// DVS - source is the document type, e.g. "driving_licence"
handleDocumentResult(claims);
}var claims = await GetUserinfo(accessToken);
if (claims["source"]?.GetValue<string>() == "bank")
HandleBankResult(claims); // IVS - see mode-ivs
else
HandleDocumentResult(claims); // DVS - source is the document type, e.g. "driving_licence"source | Method used | What else you get |
|---|---|---|
"bank" | Bank verification (IVS) | Bank profile claims. No scan_result. |
| Anything else | Document verification (DVS) | doc_type, scan_result, document fields |
Don't branch on the presence ofscan_resultalone. Branch onsource— it's always present and it's unambiguous.
What differs between the two results
Plan for these differences up front:
| Bank (IVS) | Document (DVS) | |
|---|---|---|
source | "bank" | Document type, e.g. driving_licence |
scan_result | Not present | CLEAR, SUSPECTED or REJECTED |
doc_type | Not present | Present |
email, phone_number | Possible | Not on a document |
address | Best effort | Present, except on passports |
Document fields (doc_number, expiry_date…) | Not present | Present |
The claims the two sources have in common are given_name, family_name, birthdate and usually address. If your application only needs those, your handling can be mostly shared.
Configuration
Both sets of options apply, depending on which path the user takes:
- IVS: digital asset bundles — see Bank verification
- DVS: Partial document results (
allowPartialResults), Expired documents (allowExpiredDocs), supported document types — see Document verification
Errors
Errors come from whichever path the user chose, so you may see errors from either. See Error reference.
Limitations
- You can't pre-select the method or influence the user's choice.
- Claims available differ by path, so design for the smaller common set.
- Verified credentials aren't one of the choices. They use their own scope,
vc_scope.
Related
- Bank verification (IVS)
- Document verification (DVS)
- Dual mode — if you need both, not either
Updated 3 days ago