Install the Authbound wallet
The Authbound wallet is available for Android on Google Play. Install it and follow the setup when you first open it.Issue yourself a test ID
Authbound has a built-in test credential, the Authbound Digital ID. A project with test keys can issue it when the globalpid-credential definition is published in that environment. Use the script below to check that prerequisite.
Save this script as test-id.mjs:
test-id.mjs
Use made-up details. The test ID is for testing only, and anyone with the offer can collect it, so don’t share the QR code.
What your test ID can verify
A test ID with the details above satisfies these built-in policies:| Policy | What it checks |
|---|---|
pol_kyc_basic_authbound_v1 | Name, date of birth and nationality, and that the user is 18 or older |
pol_identity_basic_authbound_v1 | Name and date of birth |
pol_age_over_18_authbound_v1 | That the user is 18 or older, without sharing their birth date |
Test with your own credential
If your app will verify a credential that you issue, such as a membership card, issue one to yourself instead:- Create a credential definition and an offer, following Issue credentials.
- Scan the offer with the Authbound wallet.
- Create a policy that targets your credential definition, as described in Create your own policy, and use its ID in your verification.
If something goes wrong
| What you see | What to do |
|---|---|
The script fails with invalid_key_format or invalid_key | Use a test secret key (sk_test_...) from the project you’re testing. See Errors. |
| The wallet says the offer has expired | Offers are short-lived. Run the script again for a new one. |
Verification fails with policy_not_satisfied | Your test ID is missing a detail the policy asks for. Issue a new one with every claim shown above. |
Verification fails with user_declined | The request was declined in the wallet, or the wallet has no matching test ID. Issue the test ID if you haven’t, then start a new verification and approve it. |