Skip to content

When token auto-refreshed, how does client know? #85

@marknadig

Description

@marknadig

I'm trying to work through how a user would detect that a requested failed initially due to an expired token and a successful refresh took place, providing a new access_token and refresh_token that the client may want to save. Any thoughts?

My current approach is to subclass session and override refresh_token to save off new tokens after calling super. I didn't know if there was a better pattern for some how passing this in the config; e.g. a proc or...

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