UserAgentApplication constructor

UserAgentApplication(
  1. Configuration configuration
)

Creates a new MSAL authentication context from the given configuration.

If the configuration is invalid, a ClientConfigurationException will be thrown.

Implementation

factory UserAgentApplication(Configuration configuration) {
  if (configuration == null) throw ArgumentError.notNull('configuration');

  try {
    return UserAgentApplication._fromJsObject(
        interop.UserAgentApplication(configuration._jsObject));
  } on interop.AuthError catch (ex) {
    throw convertJsAuthError(ex);
  }
}