Skip to content

Commit

Permalink
[login_client] Fix closing default HTTP client after logging out. (#25)
Browse files Browse the repository at this point in the history
* Don't close OAuth HTTP client

* Increment login_client version and add changelog
  • Loading branch information
Albert221 authored Jul 16, 2021
1 parent 86e08c3 commit b538501
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/login_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.0.2

- Fix closing default HTTP client after logging out.

# 2.0.1

- Downgrade `meta` dependency from `1.4.0` to `1.3.0`.
Expand Down
1 change: 0 additions & 1 deletion packages/login_client/lib/src/login_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class LoginClient extends http.BaseClient {
/// This method will log the [LoginClient] out on the authorization failure.
Future<void> logIn(AuthorizationStrategy strategy) async {
try {
_oAuthClient?.close();
_oAuthClient = await strategy.execute(
_oAuthSettings,
_httpClient,
Expand Down
2 changes: 1 addition & 1 deletion packages/login_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: login_client
version: 2.0.1
version: 2.0.2
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/login_client
repository: https://github.com/leancodepl/flutter_corelibrary
description: >-
Expand Down

0 comments on commit b538501

Please sign in to comment.