loginRedirect method

Future<void> loginRedirect([
  1. RedirectRequest? request
])

Use when initiating the login process by redirecting the user's browser to the authorization endpoint.

This function redirects the page, so any code that follows this function will not execute.

Throws an AuthException on failure.

Implementation

Future<void> loginRedirect([RedirectRequest? request]) async {
  await _convertMsalPromise<void>(
      _callJsMethod(() => _jsObject.loginRedirect(request?._jsObject)));
}