Skip to content

Commit

Permalink
Preparing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Aug 16, 2024
1 parent 87d3eca commit cc4aa84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.2

- Adds token revocation support

## 0.0.1

- Initial release
4 changes: 3 additions & 1 deletion lib/src/oauth_flutter_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ class OAuth2Client<T extends SecureOAuth2Token> {

/// Revoke the OAuth2 token
Future<void> revoke() async {
final token = await fresh.token as T;
final token = await fresh.token as T?;
if (token == null) return;

final credentials = this.credentials;
final response = await oauthDio.postUri(
endpoints.revoke,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: oauth_flutter
description: "A complete OAuth2 solution for Flutter apps. Handles auth, token storage, and token refresh."
version: 0.0.1
version: 0.0.2
homepage: https://github.com/IO-Design-Team/oauth_flutter

environment:
Expand Down

0 comments on commit cc4aa84

Please sign in to comment.