You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After doing a standard issue dbAuth scaffold and when logging in using dBAuth , normal username/password works fine. But the prompt for registering WebAuthn never show ups.
I also smoke tested my browser to make sure it can actually do webauth via https://webauthn.io/ , and my browser is supported/works.
I was able to trace the issue down to the webAuthn.isSupported() function call. It always returns false.
So it seems like the exact method to detect support might have a bug in it.
constonSubmit=async(data)=>{constwebAuthnSupported=awaitwebAuthn.isSupported()console.log('is webauthn supported on submit:',webAuthnSupported)//THIS RETURNS False}
I made a quick repo with debug statements. You can find the link below. I'll be chipping away at this, but I wanted to put this up for others to know
Which only looks up for "Platform" authenticators ie (Apple Touch ID, Windows Hello etc). Ubuntu has no platform authentication to my knowledge, but can do 3rd party based hardware devices.
We should be calling browserSupportsWebAuthn() from the 3rd party library for the isSupported function in dbauth/webauthn.
Can somebody check/confirm my logic? Once confirmed, I'll make a PR for this.
@Leon-Sam I don't have a linux box to test on, but your logic sounds good to me! Please get started on a PR and I'll loop in @cannikin, who wrote dbAuth and its webauthn support
So platformAuthenticatorIsAvailable() calls browserSupportsWebAuthn() internally, but adds an additional check for the platform authenticator. I didn't realize that would exclude third party authenticators altogether! We'd love to get a PR that enables it for everyone, thanks!
What's not working?
After doing a standard issue dbAuth scaffold and when logging in using dBAuth , normal username/password works fine. But the prompt for registering WebAuthn never show ups.
I also smoke tested my browser to make sure it can actually do webauth via https://webauthn.io/ , and my browser is supported/works.
I was able to trace the issue down to the webAuthn.isSupported() function call. It always returns false.
So it seems like the exact method to detect support might have a bug in it.
I made a quick repo with debug statements. You can find the link below. I'll be chipping away at this, but I wanted to put this up for others to know
How do we reproduce the bug?
Link to test repo:
REPO
Commands to replicate:
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: