requestAccessToken static method
Obtains a token.
Implementation
static Future<String> requestAccessToken(
Account account, List<Scope> scopeList) async {
if (account.name == null || account.type == null) {
throw Exception("Account name and type must not be null!");
}
final List<String> scopes = getScopeList(scopeList);
return await _c.invokeMethod("requestAccessToken",
{'type': account.type, 'name': account.name, 'scopeList': scopes});
}