logoutRedirect method

Future<void> logoutRedirect([
  1. EndSessionRequest? logoutRequest
])

Use to log out the current user, and redirect the user to the postLogoutRedirectUri.

Default behaviour is to redirect the user to window.location.href.

Throws an AuthException on failure.

Implementation

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