getAccountFromAuthCode method

  1. @override
Future<OAuthAccount> getAccountFromAuthCode(
  1. WebAuthenticator authenticator
)
override

Implementation

@override
Future<OAuthAccount> getAccountFromAuthCode(
    WebAuthenticator authenticator) async {
  var auth = authenticator as DropboxAuthenticator;
  return OAuthAccount(identifier,
      created: DateTime.now().toUtc(),
      expiresIn: -1,
      scope: authenticator.scope,
      refreshToken: auth.token,
      tokenType: auth.tokenType,
      token: auth.token);
}