Skip to content

Need some form of notification when pycrest acquires a new access token from the refresh token #46

Open
@wtfrank

Description

When we initialise a pycrest object we pass in the long-lived refresh token which pycrest uses to get a short-lived access token via web request.

While this access token is still valid, it would be desirable to retain this token and avoid some situations where you make another call to obtain a short-lived access token before the access token had expired.

We know when the access token will expire, so if we triggered some kind of event when a new access token was acquired, we could store this along with the expiry time, then when initialising a future pycrest object we could save a web request if the old access token had not expired.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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