From 9293380caefa9e173a30cab97b2af12e4667d2d9 Mon Sep 17 00:00:00 2001 From: Peter Bryant Date: Mon, 21 Mar 2022 11:09:23 +0000 Subject: [PATCH] Version 4.0.0 --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5a31dd..48a840f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.0.0 + +- BREAKING: Remove `clientTokenInterceptor` getter and replace with `getClientTokenInterceptor` method + ## 3.0.0 - BREAKING: `isLoggedIn` now returns `Future` instead of bool diff --git a/README.md b/README.md index 471061f..3386458 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Easily authenticate using OAuth 2.0 client/password grants. Install passputter from [pub.dev](https://pub.dev/packages/passputter): ```yaml -passputter: ^3.0.0 +passputter: ^4.0.0 ``` ## ✅ Prerequisites @@ -131,7 +131,7 @@ Passputter provides two interceptors which you can add to your Dio instances: `U You can retrieve them from your `Passputter` instance: ```dart -dio.interceptors.add(passputter.clientTokenInterceptor); +dio.interceptors.add(passputter.getClientTokenInterceptor(clientId: '1', clientSecret: 'secret')); // or dio.interceptors.add(passputter.userTokenInterceptor); ``` diff --git a/pubspec.yaml b/pubspec.yaml index fde8d7c..9a59952 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: passputter description: Easily authenticate using OAuth 2.0 client/password grants. -version: 3.0.0 +version: 4.0.0 repository: https://github.com/netsells/passputter environment: