Hello,
We have a DSP that allows us to send emails using the Graph API. To use this API, we use the ‘msal.js’ library, which allows us to connect to our Microsoft account before sending emails.
After the first connection to the Microsoft account, we use the ‘msalInstance.getAllAccounts()’ method, which retrieves the Microsoft connected user from the cache. This is essential for sending several emails in succession.
This DSP is used in a form through a DSPContainer, and it works very well.
Our problem is as follows: after each application restart, we have to re-enter our credentials: the ‘msalInstance.getAllAccounts()’ method has forgotten everything. As long as the application is not restarted, this method remembers the logged-in user.
Do you know if it is possible to have a persistent cache after closing? From an ergonomic point of view, it is not pleasant for the user to have to log in again each time.
Thank you and Happy New Year to you !



