Skip to content

Commit

Permalink
fix: use SharedPreferences on web (#738)
Browse files Browse the repository at this point in the history
fix: don't use prefs on web
  • Loading branch information
Vinzent03 committed Nov 29, 2023
1 parent 6d3e6ea commit d0cc201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/supabase_flutter/lib/src/local_storage.dart
Expand Up @@ -158,8 +158,9 @@ class SharedPreferencesLocalStorage extends LocalStorage {
Future<void> removePersistedSession() async {
if (_useWebLocalStorage) {
web.removePersistedSession(persistSessionKey);
} else {
await _prefs.remove(persistSessionKey);
}
await _prefs.remove(persistSessionKey);
}

@override
Expand Down

0 comments on commit d0cc201

Please sign in to comment.