acquireTokenRedirect method

Future<void> acquireTokenRedirect(
  1. RedirectRequest request
)

Use when you want to obtain an access_token for your API by redirecting the user's browser window 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> acquireTokenRedirect(RedirectRequest request) async {
  await _convertMsalPromise<void>(
      _callJsMethod(() => _jsObject.acquireTokenRedirect(request._jsObject)));
}