webauthn::WebAuthn method auth issue_options (public)

 <instance of webauthn::WebAuthn[i]> auth issue_options \
    [ -return_url return_url ]

Defined in packages/webauthn/tcl/webauthn-procs.tcl

Issue WebAuthn assertion options for starting a passkey login ceremony. Generates a fresh state nonce and challenge, stores the pending authentication ceremony state in the configured store (keyed by state), and returns a dict containing: - state: the nonce to be echoed back to /webauthn/auth/verify - options: PublicKeyCredentialRequestOptions for navigator.credentials.get()

Switches:
-return_url (optional, defaults to "/")
Local URL to redirect to after successful login (default: "/").

Testcases:
No testcase defined.
Source code:
set state     [::xo::oauth::nonce]
set challenge [:new_challenge 32]

# Store ceremony state
set key [:state_key auth $state]
${:store} set $key [dict create  challenge $challenge  rpId ${:rp_id}  return_url $return_url  origin [:origin]  ts [ns_time]  ]
# Return dict the handler can serialize
return [dict create  state $state  options [dict create  challenge $challenge  timeout 60000  rpId ${:rp_id}  userVerification preferred  ]  ]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: