oauth_dio 0.2.2+2 copy "oauth_dio: ^0.2.2+2" to clipboard
oauth_dio: ^0.2.2+2 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}');
  });
}
55
likes
0
pub points
83%
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