MsalProviderExtensions.InitTokenCacheAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper function to initialize the token cache for non-UWP apps. MSAL handles this automatically on UWP.
public static System.Threading.Tasks.Task InitTokenCacheAsync(this CommunityToolkit.Authentication.MsalProvider provider, Microsoft.Identity.Client.Extensions.Msal.StorageCreationProperties storageProperties, System.Diagnostics.TraceSource logger = default);
static member InitTokenCacheAsync : CommunityToolkit.Authentication.MsalProvider * Microsoft.Identity.Client.Extensions.Msal.StorageCreationProperties * System.Diagnostics.TraceSource -> System.Threading.Tasks.Task
<Extension()>
Public Function InitTokenCacheAsync (provider As MsalProvider, storageProperties As StorageCreationProperties, Optional logger As TraceSource = Nothing) As Task
Parameters
- provider
- MsalProvider
The instance of MsalProvider to init the cache for.
- storageProperties
- Microsoft.Identity.Client.Extensions.Msal.StorageCreationProperties
Properties for configuring the storage cache.
- logger
- TraceSource
Passing null uses the default TraceSource logger.
Returns
A Task representing the result of the asynchronous operation.