acquireToken method
Acquire a token interactively for the given scopes
Implementation
Future<String> acquireToken(List<String> scopes, [bool? clearSession]) async {
//create the arguments
var res = <String, dynamic>{'scopes': scopes};
if (clearSession != null) {
res['clearSession'] = clearSession;
}
//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;
}
}