logoutPopup method

Future<void> logoutPopup(
  1. [EndSessionPopupRequest? logoutRequest]
)

Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server.

Throws an AuthException on failure.

Implementation

Future<void> logoutPopup([EndSessionPopupRequest? logoutRequest]) async {
  await _convertMsalPromise<void>(
      _callJsMethod(() => _jsObject.logoutPopup(logoutRequest?._jsObject)));
}