getAuthorizationUrl method

Future<String> getAuthorizationUrl([
  1. String? callback
])

The first step in the OAuth authentication process. Returns the authorization URL after it is generated. This process is async.

Implementation

Future<String> getAuthorizationUrl([String? callback]) async {
  final res = await _auth.requestTemporaryCredentials(callback);
  _credentials = res.credentials;
  return _auth.getResourceOwnerAuthorizationURI(res.credentials.token);
}