authorize method
Implementation
@override
Future<bool> authorize() async {
var debugPrefix = '$runtimeType.isAuthorized()';
lazy.log(debugPrefix, forced: debugLog);
bool authorized = await _api.requestScopes(scopes);
String tokenTmp =
(await _api.currentUser?.authHeaders)?['Authorization'] ?? '';
token.value = tokenTmp.replaceAll('Bearer ', '');
return authorized;
}