title: What is the replacement for IProvider.LoginAsync of Windows Community Toolkit 7.0.0
body: <p>I have finally updated CommunityToolkit from 7.0 to 7.1.
  <a href="https://i.stack.imgur.com/ItE8G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ItE8G.png" alt="enter image description here" /></a></p>
  <p>to:</p>
  <p><a href="https://i.stack.imgur.com/FL2aA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FL2aA.png" alt="enter image description here" /></a></p>
  <p>The OneDrive login code used to be like this:</p>
  <pre><code>IProvider provider = ProviderManager.Instance.GlobalProvider;
  if (provider == null)
  {
      //Unable to initialize OneDrive connection;
  }
  else
  {
      if (provider.State == ProviderState.SignedOut)
      {
          await provider.LoginAsync();
      }
  }
  </code></pre>
  <p>Unfortunately, LoginAsync() is no longer available:
  <a href="https://i.stack.imgur.com/e3qok.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e3qok.png" alt="enter image description here" /></a></p>
  <p>What is the replacement for this method in CommunityToolkit 7.1?</p>