Microsoft Authentication Library extensions (MSAL EX) provides a persistence API that can save your data on disk, encrypted on Windows, macOS and Linux. Concurrent data access will be coordinated by a file lock mechanism.

WWW: https://github.com/AzureAD/microsoft-authentication-extensions-for-python
