isAuthorizationRequired method

Future<bool> isAuthorizationRequired (
  1. {@required int status,
  2. @required Map headers}
)

Checks whether the response is a MobileFirst OAuth error

This is a non blocking call and can be awaited

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;
}