DEV Community

Discussion on: Implement a distributed token cache for ASP.NET Core apps with Azure Cosmos DB

Collapse
 
fenushah profile image
Fenil Shah • Edited

I followed these above things and the token is getting saved perfectly. Now if we need to consume the same token for graph API access then how we will get/fetch the token?

Collapse
 
christosmatskas profile image
Christos Matskas

Your MSAL client is able to get your token from the cache. When you do client.acquireTokenForUserSilent() it will look into the cache first... so it's seamless to you if you implement it correctly :)