Troubleshooting
Find your problem by symptom and fix it.
Organised by what you're seeing, not by error code. Find your symptom.
Can't find your symptom?See Getting help for what to send Interac support. The most useful thing you can include is the
statevalue from the request, so make sure you log it.
Nothing arrives at my callback
The user finishes at Hub but your redirect_uri is never called.
| Check | Detail |
|---|---|
| Is the URI registered? | It must be registered during onboarding. Unregistered URIs mean Hub shows the user an error page instead of redirecting. |
| Does it match exactly? | Scheme, host, port, path and trailing slash must all match. https://x.com/cb ≠ https://x.com/cb/ |
Does it contain a #? | Fragments are rejected. Register the plain URL and route on the fragment afterwards. |
| Using a custom scheme? | myapp://cb can't be registered. See Mobile apps. |
| Using an IP address? | Use a hostname. IP literals are blocked before the request reaches Hub. |
I get a plain HTML 403 Forbidden
403 ForbiddenAn HTML body with a Server: awselb/2.0 header is not a Hub error — Hub always returns JSON. Your request was blocked at the edge.
| Cause | Fix |
|---|---|
redirect_uri uses an IP address | Use a hostname. This is the most common cause. |
redirect_uri contains a # fragment | Remove it |
| Calling preprod from an unapproved network | Confirm your egress IPs with your representative |
I get invalid_scope
invalid_scope| Cause | Fix |
|---|---|
openid missing or not first | openid document_scope, in that order |
| Wrong scope name | Use the exact string from onboarding. See Scopes. |
| Scope not enabled for this client | Ask your representative |
| Works in preprod, fails in production | Your production client may have a different scope name |
Hub rejects my signature
invalid_client, or an audience error.
| Check | Detail |
|---|---|
Is kid in the JWT header? | Required. It tells Hub which key to use. |
| Is your JWKS URL reachable from the internet? | Hub must be able to fetch it. Not behind a firewall or VPN. |
| Does the key at that URL match your signing key? | The public half of the pair you signed with |
Is alg set to RS256? | Other algorithms aren't accepted |
Is aud right for the call you're making? | This is the common one — see below |
The aud trap
aud trapaud is different in the two places you sign something:
Copying one into the other is the single most common cause of rejected signatures. Note the trailing slash on issuer — it's part of the value.
I get invalid_grant at the token step
invalid_grant at the token step| Cause | Fix |
|---|---|
| The code was already used | Codes are single-use. Check you aren't retrying. |
| The code expired | Exchange it immediately on redirect |
redirect_uri doesn't match Step 2 | Must be byte-identical |
| Your callback runs twice | Browser prefetch or a double-submit. Make the handler idempotent. |
A claim I expected is missing
This is usually not a bug.
| Check | Detail |
|---|---|
| Is it best-effort? | address, email, phone_number, middle_name, title, honorific may be empty, "N/A" or absent. See Bank verification. |
| Is it in your bundle? | Claims are fixed at onboarding. Confirm what your client has. |
| Passport? | Passports carry no address, so no postal code. |
| Prefixed name? | com.securekey.verified.me.ui_locale — the full dotted name is the key. |
| Select mode? | Bank and document verification return different claims. Branch on source. |
| Verified credentials? | Fields the source document doesn't carry are null, such as residence for a passport. |
My code breaks on some users but not others
Almost always unavailable best-effort claims. Depending on the user's bank, a valid verification can return address as an empty string, as "N/A", or not at all.
Test with responses where address, email and phone_number are empty strings, "N/A", and absent.
error_description looks like gibberish
error_description looks like gibberishIt's URL-encoded. Decode it first:
err%3Auser_cancelled%24details%3A... → err:user_cancelled$details:...
I only get error=access_denied with no useful detail
error=access_denied with no useful detailCheck error_description — it's always returned alongside error, and it's the parameter that tells you what actually happened. Nearly every flow failure uses access_denied as the error value, so branching on error alone tells you nothing.
Remember it's URL-encoded: Document+R decodes to Document R.
If you're after a correlation ID, a match score or document fraud flags, those come from detailed error reporting — an optional capability subject to commercial agreement. Raise it with your Interac representative if your use case depends on them.
Document scans keep failing
scan_result | What it means | Worth a retry? |
|---|---|---|
REJECTED + image_quality | Poor photo | Yes |
REJECTED + document_expiration | Expired document | No, unless Expired documents (allowExpiredDocs) is true |
REJECTED + supported_document | Document type not enabled for your client | No |
SUSPECTED + face_match | Selfie didn't match the photo | Depends on your policy |
You only see flags if Partial document results (allowPartialResults) is true. Otherwise you get Document+R or Document+S with no detail. See Document verification.
Verified credentials
| Situation | What to do |
|---|---|
| The user doesn't have the Interac verification app | They download it, then return to your website to continue. Tell them what they'll need before you redirect them. |
| The user installed the app but didn't come back to your website | Send login_hint with their email or phone number, so they can continue in the app |
login_hint fails with invalid_request | It must be a JSON-encoded string with valid values, sent with POST /auth/par. See Verified credentials. |
You get err:no_match_found | No credential matched the request. Offer to try again, or another way to verify. |
| A credential has expired | Check issuance.issue_expiry before relying on it. See Credential expiry. |
Subject matching always fails
| Check | Detail |
|---|---|
| Are you using PAR? | Subject matching requires POST /auth/par. It silently won't work with GET /auth. |
| Right fields? | default_KYC matches given_name, family_name, birthdate, address.postal_code. Everything else is ignored. |
| Right formats? | birthdate as YYYY-MM-DD, postal code as A1A 1A1 |
| Passport users? | No postal code on a passport, so that attribute scores 0 |
| Using dual mode or verified credentials? | Not supported. See Subject matching. |
It works in preprod but not production
| Check | Detail |
|---|---|
| Different client ID? | Each environment has its own client ID. Check you're using the production one. |
| Different scope name? | Scope names are per client |
| Hardcoded endpoints? | Read them from discovery |
| Redirect URI registered in production? | Registration is per environment |
| JWKS URL reachable from production? | Different network path |
Getting help
Include these when you contact support:
- The environment
- Your client ID
- The
statevalue — see below - Roughly when it happened, with a timezone
- The
errorvalue and, if present, the decodederror_description - The
cid, if your client receives one
Always keep your state values
state valuesstate is the most useful thing you can give us. Hub records it the moment your request arrives, before any verification starts, so support can use it to find the internal job. In the verified credentials flow it maps to the cid as well.
That makes it the one identifier that still works when things fail early:
| Situation | Do you have a cid? | Do you have state? |
|---|---|---|
| Verification failed, you got a redirect | Only with detailed error reporting | Yes |
| The user abandoned the flow and never came back | No | Yes |
| Your request was rejected before any redirect | No | Yes |
POST /auth/par returned 400 | No | Yes |
Logstateagainst your session and keep it. You already generate a uniquestateper verification for security reasons — see Step 2. Storing it next to your own request ID costs nothing, and it's often the difference between support tracing your transaction quickly or not at all.
Include thecidtoo if you have one — it identifies the exact transaction. But don't wait until you have one before asking for help.
Updated 3 days ago