Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document behavior of hanko-auth depending on device capabilities #222

Closed
FlxMgdnz opened this issue Sep 7, 2022 · 3 comments
Closed

Document behavior of hanko-auth depending on device capabilities #222

FlxMgdnz opened this issue Sep 7, 2022 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@FlxMgdnz
Copy link
Member

FlxMgdnz commented Sep 7, 2022

We need to document our implementation / decision algorithm of <hanko-auth>:

  • Passkey creation and login is only offered if supported on the current device
  • The fallback is always the email passcode (or a password if enabled in the backend config)
  • Android has no full passkey support yet, so the username is always required, but then a WebAuthn auth is possible
  • On latest iOS, macOS and Windows, the "Sign in with a passkey" button is shown, meaning you can also login without having to enter the username
  • There may be more that I am missing here
@FlxMgdnz FlxMgdnz added this to the 1.0 milestone Sep 14, 2022
@irby
Copy link
Collaborator

irby commented Sep 16, 2022

For me, running on macOS Monterey, the "Sign in with a Passkey" option showed up on Safari and Chrome but not on Firefox. I found out it was because of PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() not being fully supported on Firefox without a USB U2F token. I think having a list of browser compatibility would be helpful, although this may also vary by OS and device compatibility.

@like-a-bause like-a-bause added the documentation Improvements or additions to documentation label Sep 19, 2022
@FlxMgdnz
Copy link
Member Author

FlxMgdnz commented Dec 1, 2022

For me, running on macOS Monterey, the "Sign in with a Passkey" option showed up on Safari and Chrome but not on Firefox. I found out it was because of PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() not being fully supported on Firefox without a USB U2F token. I think having a list of browser compatibility would be helpful, although this may also vary by OS and device compatibility.

We recently changed the behavior (#331) and are no longer limiting passkey creation to platform authenticators. Now if a browser has WebAuthn, Hanko can create a passkey.

@FlxMgdnz
Copy link
Member Author

We're maintaining a list of compatible OS/browser combinations here: https://www.passkeys.io/compatible-devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Archived in project
Development

No branches or pull requests

4 participants