loginPopup method

Future<AuthenticationResult> loginPopup([
  1. PopupRequest? request
])

Use when initiating the login process via opening a popup window in the user's browser.

Throws an AuthException on failure.

Implementation

Future<AuthenticationResult> loginPopup([PopupRequest? request]) async {
  final response = await _convertMsalPromise<interop.AuthenticationResult>(
      _callJsMethod(() => _jsObject.loginPopup(request?._jsObject)));

  return AuthenticationResult._fromJsObject(response);
}