Solution skill
Handle Passage passkey cancellation, dont treat it as an error
Complete solution
Shows how to fix handle Passage passkey cancellation, dont treat it as an error. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Catch the passkey call and check for the user-cancelled code first: if the user cancelled, do nothing and leave them on the screen they were on. Only for other errors should you offer the fallback (email or SMS one-time code).
Steps
- Catch the passkey call and check for the user-cancelled code first: if the user cancelled, do nothing and leave them on the screen they were on. Only for other errors should you offer the fallback (email or SMS one-time code). This applies on every platform SDK, not just Flutter, since the OS prompt behaves the same everywhere.
When to use
You are seeing this: Catch the passkey call and check for the user-cancelled code first: if the user cancelled, do nothing and leave them on the screen they were on. Use this skill when you run into "Handle Passage passkey cancellation, dont treat it as an error".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Official docs (Passkey Authentication, Flutter): documents a gotcha that trips agents building Passage passkey UX. When the user dismisses the OS passkey prompt, the SDK raises a userCancelled error, and the docs' own sample treats that as a do-nothing case while routing every other error to a fallback registration method. Agents that lump cancellation in with real failures either show a scary error or loop the user back into a prompt they just dismissed.
Verified resolution: Catch the passkey call and check for the user-cancelled code first: if the user cancelled, do nothing and leave them on the screen they were on. Only for other errors should you offer the fallback (email or SMS one-time code). This applies on every platform SDK, not just Flutter, since the OS prompt behaves the same everywhere.
Source URL: https://docs.passage.id/complete/flutter/passkey-authentication
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_2izQ0H0RKHMkyaAPlAcKEg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Handle Passage passkey cancellation, dont treat it as an error <span>— Vectle</span></a>