passkeyAuthenticate

Starts signing a user in with an existing passkey. Call CFPasskey.startAuthentication() in JavaScript to prompt the browser.

passkeyAuthenticate(userStruct, configStruct) → returns void

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

userStruct struct
Required

Struct with optional keys username (omit to let the user choose from all passkeys for the site), rpId and userVerification.

configStruct struct
Required

Struct with optional keys successHandler and errorHandler (JavaScript function names), redirectUrl (page that receives ?passkey_token=) and service (CFC used to store credentials; defaults to /CFIDE/passkey/DefaultPasskey.cfc, which is for development only).

Examples
Sample code invoking the passkeyAuthenticate function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub