getAuthenticationContext static method Null safety

Future<AuthenticationContext> getAuthenticationContext(
  1. String url
)

Get the Authentication Context for the current transaction.

The Authentication Context contains the Authenticator Config, Authentication Method Configuration, request origin, and the authenticating application. This is used to retrieve authentication parameters for an ongoing transaction.

url The authentication URL of the current transaction. Returns a AuthenticationContext or throws an Exception

Implementation

static Future<AuthenticationContext> getAuthenticationContext(
    String url) async {
  final Map<String, dynamic>? authContextResponse =
      await _channel.invokeMapMethod('getAuthenticationContext', {
    'url': url,
  });

  try {
    return AuthenticationContext.mapToAuthenticationContext(
        authContextResponse);
  } on Exception {
    rethrow;
  }
}