This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Description
Currently I am working with a codebase that calls login for each API request. However, it would be more efficient if a login call was made only when necessary.
What is the best practice for caching the AuthSession cookie when using cloudant-python library so that a login call does not need to be made unless the cached AuthSessoin cookie does not exist, or has expired or an API call results in 401 - Unauthorized?
Many thanks.