fix lints
This commit is contained in:
@@ -37,7 +37,6 @@ class AccountAuthState with FastEquatable {
|
||||
// states for the same user but with distinct client instances are still
|
||||
// semantically equal — including identityHashCode here would defeat
|
||||
// Riverpod's caching by treating every reissued state as different.
|
||||
// ignore: missing_field_in_equatable_props
|
||||
final SupabaseClient? client;
|
||||
|
||||
AccountAuthState({
|
||||
@@ -64,5 +63,6 @@ class AccountAuthState with FastEquatable {
|
||||
userId,
|
||||
lastError,
|
||||
syncKey,
|
||||
client,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -271,7 +271,6 @@ class AccountAuthRepository extends _$AccountAuthRepository {
|
||||
|
||||
// Clear the pending code verifier so a late browser callback is rejected.
|
||||
final data = await _store.read();
|
||||
// ignore: avoid_redundant_argument_values
|
||||
await _store.write(data.copyWith(pendingCodeVerifier: null));
|
||||
|
||||
state = AsyncData(AccountAuthState());
|
||||
@@ -327,7 +326,6 @@ class AccountAuthRepository extends _$AccountAuthRepository {
|
||||
displayName:
|
||||
(user?['user_metadata'] as Map<String, dynamic>?)?['display_name']
|
||||
as String?,
|
||||
// ignore: avoid_redundant_argument_values
|
||||
pendingCodeVerifier: null,
|
||||
),
|
||||
);
|
||||
@@ -372,9 +370,7 @@ class AccountAuthRepository extends _$AccountAuthRepository {
|
||||
|
||||
Future<void> clearSyncKey() async {
|
||||
final data = await _store.read();
|
||||
// ignore: avoid_redundant_argument_values
|
||||
await _store.write(data.copyWith(syncKey: null));
|
||||
// ignore: avoid_redundant_argument_values
|
||||
state = AsyncData(_currentOrEmpty.copyWith(syncKey: null));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user