oauth_dio 0.2.0 oauth_dio: ^0.2.0 copied to clipboard
A customizable oauth client with token storage and interceptors for dio
import 'package:oauth_dio/oauth_dio.dart';
void main() {
final oauth = OAuth();
oauth
.requestToken(PasswordGrant(username: 'foo', password: 'bar'))
.then((token) {
print('AccessToken: ${token.accessToken}');
print('RefreshToken: ${token.refreshToken}');
});
}