acquireTokenSilent method

Future<AuthenticationResult> acquireTokenSilent(
  1. SilentRequest request
)

Silently acquire an access token for a given set of scopes.

Will use cached token if available, otherwise will attempt to acquire a new token from the network via refresh token.

Throws an AuthException on failure.

Implementation

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

  return AuthenticationResult._fromJsObject(response);
}