Skip to content

Commit

Permalink
ignore logout exception
Browse files Browse the repository at this point in the history
  • Loading branch information
alann-maulana committed Oct 13, 2019
1 parent 21d1b54 commit f7ab1c6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/src/parse_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@ class ParseUser extends ParseObject {
}

static Future<void> signOut() async {
await parseHTTPClient.post(
'${parse.configuration.uri.path}/logout',
ignoreResult: true,
);
try {
await parseHTTPClient.post(
'${parse.configuration.uri.path}/logout',
ignoreResult: true,
);
} catch (_) {
// ignores any exception that happen
}
final storage = await _currentUserStorage;
return await storage.delete();
}
Expand Down

0 comments on commit f7ab1c6

Please sign in to comment.