File: Models\MsalCacheOptions.cs
Web Access
Project: src\src\Components\WebAssembly\Authentication.Msal\src\Microsoft.Authentication.WebAssembly.Msal.csproj (Microsoft.Authentication.WebAssembly.Msal)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.Authentication.WebAssembly.Msal.Models;
 
/// <summary>
/// Cache options for the msal.js cache.
/// </summary>
public class MsalCacheOptions
{
    /// <summary>
    /// Gets or sets the cache location.
    /// </summary>
    /// <remarks>
    /// Valid values are <c>sessionStorage</c> and <c>localStorage</c>.
    /// </remarks>
    public string? CacheLocation { get; set; }
 
    /// <summary>
    /// Gets or sets whether to store the authentication state in a cookie.
    /// </summary>
    public bool StoreAuthStateInCookie { get; set; }
}