Skip to content

Refresh Token not renewed #50

@hipslu

Description

@hipslu

First of all, thanks for this project!

Currently, the refresh token is used to obtain new access tokens, but the refresh token itself is never updated - which leads to the problem having the initial refresh token not beeing valid anymore, forcing the user to reauthenticate.

so i think simply storing the new refresh token as well when getting the new access token would fix that, so adding the following two lines should do the trick:

refresh_token = response['refresh_token']
config.set(username, 'refresh_token', OAuth2Helper.encrypt(cryptographer, refresh_token))

what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions