Skip to content

feat: add support for biometric login#45

Merged
freekvandeven merged 1 commit intomasterfrom
feature/biometric-login
Apr 17, 2025
Merged

feat: add support for biometric login#45
freekvandeven merged 1 commit intomasterfrom
feature/biometric-login

Conversation

@freekvandeven
Copy link
Contributor

No description provided.

@freekvandeven freekvandeven self-assigned this Apr 16, 2025
/// Allow the user to login with biometrics even if they have no biometrics
/// set up on their device. This will use pincode or other authentication
/// methods
final bool allowBiometricLoginWithoutBiometrics;
Copy link

@Quirille Quirille Apr 16, 2025

Choose a reason for hiding this comment

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

Please change the name, this one is terrible.

allowPinAlternative or whatever you want, then explain why in the doc comment

Future<void> authenticate(LoginOptions loginOptions) async {
try {
if (!await _localAuth.isDeviceSupported()) {
loginOptions.onBiometricsError?.call();

Choose a reason for hiding this comment

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

this is not the same situation as !didAuthenticate.

Copy link

@Quirille Quirille left a comment

Choose a reason for hiding this comment

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

I have some small issues

@freekvandeven freekvandeven force-pushed the feature/biometric-login branch from 14e6288 to 93e4e46 Compare April 16, 2025 21:18
@freekvandeven freekvandeven merged commit 9f66da6 into master Apr 17, 2025
1 check passed
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.

3 participants