Remove Google auth: drop google_sign_in, google-services.json, gradle plugin; keep email+password+fingerprint
This commit is contained in:
@@ -24,20 +24,10 @@ class AuthService {
|
||||
key: AppConstants.secureKeyAppPassword, value: appPassword);
|
||||
}
|
||||
|
||||
Future<void> registerWithGoogle(String email) async {
|
||||
await _storage.write(key: AppConstants.secureKeyEmail, value: email);
|
||||
final existing = await getAppPassword();
|
||||
if (existing == null) {
|
||||
await _storage.write(
|
||||
key: AppConstants.secureKeyAppPassword, value: '__google__');
|
||||
}
|
||||
}
|
||||
|
||||
/// Verify the entered app password against the stored one.
|
||||
Future<bool> verifyPassword(String password) async {
|
||||
final stored = await getAppPassword();
|
||||
if (stored == null) return false;
|
||||
if (stored == '__google__') return true; // google users: any pass ok
|
||||
return stored == password;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user