Skip to content

Commit

Permalink
fix: remove check during logout as it fails when audience mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricCookie committed Apr 5, 2024
1 parent cf6b983 commit a8b8493
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/src/services/auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@ class AuthService extends ChangeNotifier {

/// Log the user out, deletes all tokens
Future<void> logout() async {
final accessToken = await this.accessToken;
if (accessToken == null) {
throw Exception('No access token to logout');
}
await _storage.delete(key: _prefsAccessToken);
await _storage.delete(key: _prefsRefreshToken);
await _storage.delete(key: _prefsIdToken);
Expand Down

0 comments on commit a8b8493

Please sign in to comment.