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

AuthSession not cached (was 'Q: best practice for caching AuthSession') #51

@snowch

Description

@snowch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions