WebAuthn Immediate Demo

Explainer: WebAuthn immediate mediation

How to Test:

Checking capabilities...
Use mediation: 'immediate'
Request Passkeys
Request Passwords

URL Parameter Options

You can control some behaviors by adding parameters to this page's URL:

  • uv=[value]: Sets User Verification requirement.
    Accepted values: required, preferred (default), discouraged.
    Example: index.html?uv=required
  • immediate_onload=true: Attempts a sign-in with mediation: 'immediate' automatically when the page loads.
    Example: index.html?immediate_onload=true
  • fallback=pw: If a sign-in attempt on this page results in a NotAllowedError (e.g., user cancellation, or immediate mediation fails), you will be redirected to the sign-in page with the password flow pre-selected (signin.html?type=pw).
    Example: index.html?fallback=pw
  • autoselect: If this parameter is present (value doesn't matter), the timeout for the navigator.credentials.get() call will be set to 300042 (otherwise it's 300000).
    Example: index.html?autoselect

Parameters can be combined, e.g., index.html?uv=required&immediate_onload=true.