ory / ory/elements

WebAuthn script is not loading in page router example

Open
#491 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
187
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Ory Network Project

master

Describe the bug

When trying to use PassKeys with the example app, it fails because webauthn.js is not being loaded.

Image

However, the script is there:

Image

But it is not being loaded:

Image
Reproducing the bug

Run one of the examples and go to login.

Relevant log output

Relevant configuration

Version

master

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

It's probably not loading because we add it dynamically? But I don't understand why it loads for the account experience?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run one of the examples and visit the login page to reproduce the missing webauthn.js failure. Compare the page router example's dynamic script loading with the account experience, and consider the issue done when PassKey login loads the script successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.