acquireTokenSilent method

Future<AuthResponse> acquireTokenSilent(
  1. AuthRequest request

Acquires an access token by using a cached token if available or by sending a request to the authorization endpoint to obtain a new token using a hidden iframe.

To renew an ID token, pass the client ID as the only scope in the request.

Will throw an AuthException on failure.


Future<AuthResponse> acquireTokenSilent(AuthRequest request) async {
  final response = await _convertMsalPromise<interop.AuthResponse>(
      _callJsMethod(() => _jsObject.acquireTokenSilent(request._jsObject)));

  return AuthResponse._fromJsObject(response);