File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.0.0
2
+
3
+ - BREAKING: Remove ` clientTokenInterceptor ` getter and replace with ` getClientTokenInterceptor ` method
4
+
1
5
## 3.0.0
2
6
3
7
- BREAKING: ` isLoggedIn ` now returns ` Future<bool> ` instead of bool
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Easily authenticate using OAuth 2.0 client/password grants.
14
14
Install passputter from [ pub.dev] ( https://pub.dev/packages/passputter ) :
15
15
16
16
``` yaml
17
- passputter : ^3 .0.0
17
+ passputter : ^4 .0.0
18
18
` ` `
19
19
20
20
## ✅ Prerequisites
@@ -131,7 +131,7 @@ Passputter provides two interceptors which you can add to your Dio instances: `U
131
131
You can retrieve them from your `Passputter` instance :
132
132
133
133
` ` ` dart
134
- dio.interceptors.add(passputter.clientTokenInterceptor );
134
+ dio.interceptors.add(passputter.getClientTokenInterceptor(clientId: '1', clientSecret: 'secret') );
135
135
// or
136
136
dio.interceptors.add(passputter.userTokenInterceptor);
137
137
` ` `
Original file line number Diff line number Diff line change 1
1
name : passputter
2
2
description : Easily authenticate using OAuth 2.0 client/password grants.
3
- version : 3 .0.0
3
+ version : 4 .0.0
4
4
repository : https://github.com/netsells/passputter
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments