isAuthorizationRequired method
Checks whether the response is a MobileFirst OAuth error
This is a non blocking call and can be await
ed
Implementation
Future<bool> isAuthorizationRequired(
{@required int status, @required Map headers}) async {
final bool authorizationRequired = await _channel.invokeMethod(
WLAUTHORIZATIONMANAGER_ISAUTHORIZATIONREQUIRED,
<String, dynamic>{STATUS: status, HEADERS: headers});
return authorizationRequired;
}