oauth_dio 0.2.1 copy "oauth_dio: ^0.2.1" to clipboard
oauth_dio: ^0.2.1 copied to clipboard

outdated

A customizable oauth client with token storage and interceptors for dio

example/main.dart

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}');
  });
}
57
likes
0
pub points
82%
popularity

Publisher

unverified uploader

A customizable oauth client with token storage and interceptors for dio

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on oauth_dio