Skip to content

Commit

Permalink
Make error message on missing platform auth more actionable (#1312)
Browse files Browse the repository at this point in the history
This changes the error message that we show on mobile if there is no
platform authenticator to something more understandable.
  • Loading branch information
Frederik Rothenberger authored Mar 9, 2023
1 parent efbadc9 commit fd4c493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/utils/featureDetection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const checkRequiredFeatures = async (
try {
return (await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable())
? true
: "UserVerifyingPlatformAuthenticator is not available";
: "This device does not offer WebAuthn authentication. Please make sure you have biometrics (fingerprint / Touch ID / Face ID) enabled and try again.";
} catch (error) {
return `An error occured when checking for compatibility: ${wrapError(
return `An error occurred when checking for compatibility: ${wrapError(
error
)}`;
}
Expand Down

0 comments on commit fd4c493

Please sign in to comment.