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

Default values for Biometric options #115

Open
fungc-io opened this issue Jun 8, 2021 · 0 comments
Open

Default values for Biometric options #115

fungc-io opened this issue Jun 8, 2021 · 0 comments
Labels
ux/minor > 20% users will notice the issue as a problem

Comments

@fungc-io
Copy link
Member

fungc-io commented Jun 8, 2021

When using biometric login, a long list of options is needed to be configured in checkBiometricSupported(biometricOptions)

const biometricOptions = {
  ios: {
    localizedReason: 'Use biometric to authenticate',
    constraint: 'biometryCurrentSet' as const,
  },
  android: {
    title: 'Biometric Authentication',
    subtitle: 'Biometric authentication',
    description: 'Use biometric to authenticate',
    negativeButtonText: 'Cancel',
    constraint: ['BIOMETRIC_STRONG' as const],
    invalidatedByBiometricEnrollment: true,
  },
};

Consider shorten it by giving defaults for these values so it's easier to use

@fungc-io fungc-io added the ux/minor > 20% users will notice the issue as a problem label Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux/minor > 20% users will notice the issue as a problem
Projects
None yet
Development

No branches or pull requests

1 participant