Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b53743a
Bind to local platform interface package
stuartmorgan-g Aug 26, 2025
dff4dec
Add structured exception class
stuartmorgan-g Aug 26, 2025
0f54e0f
Update Windows
stuartmorgan-g Aug 26, 2025
9f9c148
Clarify platform interface docs
stuartmorgan-g Sep 3, 2025
a623537
Android implementation
stuartmorgan-g Aug 27, 2025
8ce45dc
Convert iOS
stuartmorgan-g Sep 3, 2025
6b44729
Documentation updates
stuartmorgan-g Sep 4, 2025
3894214
Remove useErrorDialogs and all related handling, update README
stuartmorgan-g Sep 8, 2025
b7cbe24
More changelog and version updates
stuartmorgan-g Sep 9, 2025
4897463
Rename Android biometricHint
stuartmorgan-g Sep 9, 2025
7362182
Throw structured exception from getEnrolledBiometrics
stuartmorgan-g Sep 9, 2025
a9d6b2f
Merge branch 'main' into local-auth-structured-errors
stuartmorgan-g Sep 9, 2025
359be0c
Apply Gemini error formatting suggestions in app-facing package
stuartmorgan-g Sep 11, 2025
5d23e5c
autoformat Gemini changes
stuartmorgan-g Sep 11, 2025
4f8fb80
Merge branch 'main' into local-auth-structured-errors
stuartmorgan-g Sep 11, 2025
3125501
Merge branch 'main' into local-auth-structured-errors
stuartmorgan-g Sep 16, 2025
d6dc783
Typo fixes
stuartmorgan-g Sep 16, 2025
11d257d
Merge branch 'main' into local-auth-structured-errors
stuartmorgan-g Sep 17, 2025
f11d2be
Update for adjustment to auth_options
stuartmorgan-g Sep 24, 2025
4e99fdd
Sync with landed version of platform interface
stuartmorgan-g Sep 30, 2025
fbd24bf
Merge branch 'main' into local-auth-structured-errors
stuartmorgan-g Sep 30, 2025
859b046
iOS README update
stuartmorgan-g Sep 30, 2025
3955e48
Revert app-facing package
stuartmorgan-g Sep 30, 2025
bb45330
Update interface dependency
stuartmorgan-g Sep 30, 2025
2796b1c
Merge branch 'main' into local-auth-structured-errors-impls
stuartmorgan-g Oct 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Typo fixes
  • Loading branch information
stuartmorgan-g committed Sep 16, 2025
commit d6dc7838221ee0ba07cc12618f23a17a5c2022a8
7 changes: 4 additions & 3 deletions packages/local_auth/local_auth/lib/src/local_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ class LocalAuthentication {
/// unlock their device.
///
/// On mobile platforms, authentication may be stopped by the system when the
/// is backgrounded during an authentication. Set [persistAcrossBackgrounding]
/// to true to have the plugin automatically retry the authentication on
/// foregrounding instead of failing with an error on backgrounding.
/// app is backgrounded during an authentication. Set
/// [persistAcrossBackgrounding] to true to have the plugin automatically
/// retry the authentication on foregrounding instead of failing with an error
/// on backgrounding.
Future<bool> authenticate({
required String localizedReason,
Iterable<AuthMessages> authMessages = const <AuthMessages>[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

import 'package:flutter/foundation.dart';

/// An exception thrown by the plugin when there is authenication failure, or
/// An exception thrown by the plugin when there is authentication failure, or
/// some other error.
@immutable
class LocalAuthException implements Exception {
/// Crceates a new exception with the given information.
/// Creates a new exception with the given information.
const LocalAuthException({
required this.code,
this.description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum AuthResult {
/// The biometric hardware is currently in use.
deviceBusy,

/// Device poilcy does not allow using the authentication system.
/// Device policy does not allow using the authentication system.
disabledByPolicy,

/// Authentication is unavailable for an unknown reason.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum AuthResult {
/// The biometric hardware is currently in use.
deviceBusy,

/// Device poilcy does not allow using the authentication system.
/// Device policy does not allow using the authentication system.
disabledByPolicy,

/// Authentication is unavailable for an unknown reason.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ enum class AuthResult {
kNotEnrolled = 3,
// The biometric hardware is currently in use.
kDeviceBusy = 4,
// Device poilcy does not allow using the authentication system.
// Device policy does not allow using the authentication system.
kDisabledByPolicy = 5,
// Authentication is unavailable for an unknown reason.
kUnavailable = 6
Expand Down