Skip to content

Commit 9293380

Browse files
author
Peter Bryant
committed
Version 4.0.0
1 parent dc23611 commit 9293380

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.0.0
2+
3+
- BREAKING: Remove `clientTokenInterceptor` getter and replace with `getClientTokenInterceptor` method
4+
15
## 3.0.0
26

37
- BREAKING: `isLoggedIn` now returns `Future<bool>` instead of bool

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Easily authenticate using OAuth 2.0 client/password grants.
1414
Install passputter from [pub.dev](https://pub.dev/packages/passputter):
1515

1616
```yaml
17-
passputter: ^3.0.0
17+
passputter: ^4.0.0
1818
```
1919
2020
## ✅ Prerequisites
@@ -131,7 +131,7 @@ Passputter provides two interceptors which you can add to your Dio instances: `U
131131
You can retrieve them from your `Passputter` instance:
132132

133133
```dart
134-
dio.interceptors.add(passputter.clientTokenInterceptor);
134+
dio.interceptors.add(passputter.getClientTokenInterceptor(clientId: '1', clientSecret: 'secret'));
135135
// or
136136
dio.interceptors.add(passputter.userTokenInterceptor);
137137
```

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: passputter
22
description: Easily authenticate using OAuth 2.0 client/password grants.
3-
version: 3.0.0
3+
version: 4.0.0
44
repository: https://github.com/netsells/passputter
55

66
environment:

0 commit comments

Comments
 (0)