Persist and refresh Access Token after external Microsoft B2C login

Hi,

I’ve adapted the documentation here to work with Azure AD B2C. I can login successfully, and the auto linking works as intended. However, my website requires the use of a Azure AD protected API. This means that I need to use the Azure AD access token (that I get from the callback from Microsoft AD) as a Bearer for a subsequent REST API call.

How do I keep hold of the access token? And, if the token expires after ~15 mins, how would I refresh that token?
Thanks


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108415-persist-and-refresh-access-token-after-external-microsoft-b2c-login