acquireToken method

Future<String> acquireToken(
  1. List<String> scopes
)

Acquire a token interactively for the given scopes

Implementation

Future<String> acquireToken(List<String> scopes) async {
  //create the arguments
  var res = <String, dynamic>{'scopes': scopes};
  //call platform
  try {
    final String token = await _channel.invokeMethod('acquireToken', res);
    return token;
  } on PlatformException catch (e) {
    print(e.toString());
    throw _convertException(e);
  } catch (e) {
    print(e);
    rethrow;
  }
}