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

Add getAvailability to all supported platforms #110

Merged
merged 10 commits into from
Jan 23, 2025

Conversation

Dopeamin
Copy link
Collaborator

No description provided.

@Dopeamin Dopeamin linked an issue Jan 21, 2025 that may be closed by this pull request
final canAuthenticate = await _api.canAuthenticate();
return AvailabilityType(
hasPasskeySupport: canAuthenticate,
isUserVerifyingPlatformAuthenticatorAvailable: canAuthenticate,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on iOS we set isUserVerifyingPlatformAuthenticatorAvailable to null => is there a reason to do it differently here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on android the canAuthenticate actually is relying on the value isUserVerifyingPlatformAuthenticatorAvailable from FIDO2APIClient to check for passkey support so it would make sense to use it for both

@Dopeamin Dopeamin merged commit 52fbe6a into main Jan 23, 2025
@Dopeamin Dopeamin deleted the 105-is-there-a-replacement-method-for-canauthenticate branch January 23, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there a replacement method for canAuthenticate()
2 participants