acquireTokenString method
Acquire a token interactively for the given scopes
return String
{accessToken": xxx,"expiresOn" : xxx}
Implementation
Future<String> acquireTokenString({required List<String> scopes}) async {
var res = <String, dynamic>{'scopes': scopes};
try {
final String? json = await _channel.invokeMethod('acquireToken', res);
return json ?? "Error";
} on PlatformException catch (e) {
throw _convertException(e);
}
}