<@U04UQ68083H> I'm receiving the following error w...
# ory-copilot
b
@chilly-king-10285 I'm receiving the following error when setting up passkey login window.oryPasskeyLogin is not a function
b
A message from kapa.ai
Based on the knowledge sources, I can see that you're encountering an error with the passkey login functionality in Ory. The error "window.oryPasskeyLogin is not a function" suggests there's an issue with the WebAuthn/passkey JavaScript triggers. From the documentation, Ory provides specific JavaScript functions for passkey operations, including
oryPasskeyLogin
. This function should be available when properly implementing passkey authentication in your application. The API documentation shows that Ory uses trigger functions for WebAuthn and passkey operations. These are referenced in the
onclickTrigger
and
onloadTrigger
attributes, which map to JavaScript functions provided by Ory:
Copy code
'onclickTrigger': {   'description': 'OnClickTrigger may contain a WebAuthn trigger which should be executed on click.   The trigger maps to a JavaScript function provided by Ory, which triggers actions such as PassKey registration or login.   oryWebAuthnRegistration WebAuthnTriggersWebAuthnRegistration   oryWebAuthnLogin WebAuthnTriggersWebAuthnLogin   oryPasskeyLogin WebAuthnTriggersPasskeyLogin   oryPasskeyLoginAutocompleteInit WebAuthnTriggersPasskeyLoginAutocompleteInit   oryPasskeyRegistration WebAuthnTriggersPasskeyRegistration   oryPasskeySettingsRegistration WebAuthnTriggersPasskeySettingsRegistration' }
The error you're experiencing likely indicates that the Ory JavaScript library that provides these functions hasn't been properly loaded or initialized in your application. To resolve this issue, you should: 1. Make sure you've included the necessary Ory JavaScript libraries in your application 2. Check that the libraries are loaded before you attempt to use the passkey functions 3. Verify that you're using the correct implementation according to the Ory documentation Unfortunately, the knowledge sources don't provide specific implementation details about how to properly include these JavaScript functions in your application. I would recommend checking the Ory documentation for WebAuthn/passkey implementation guides or contacting Ory support for more specific guidance on implementing passkey login correctly.