setActiveAccount method

void setActiveAccount(
  1. AccountInfo? account
)

Sets the account to use as the active account.

If no account is passed to the acquireToken APIs, then MSAL will use this active account.

Implementation

void setActiveAccount(AccountInfo? account) {
  _callJsMethod(() {
    _jsObject.setActiveAccount(account?._jsObject);
  });
}