I have set up a .Net core web application and web API and secured them using Azure AD B2C based on the following sample - https://docs.microsoft.com/en-us/samples/azure-samples/active-directory-b2c-dotnetcore-webapp/an-aspnet-core-web-app-with-azure-ad-b2c/
This is great for initial development but uses a static in memory cache so whenever the web app is restarted the token cache is cleared. I would like to implement SQL token caching using IDistributedCache but can only find samples that are Azure AD (not B2C) specific or out of date and using previous versions of MSAL.net (I am currently using v3).
Does anyone know of any examples that provide details for implementing a SQL token cache with Azure AD B2C?