Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to refresh access_token via refresh_token (instead of code) after access_token gained via oauth is expired= #162

Open
marfrede opened this issue Jan 16, 2023 · 1 comment

Comments

@marfrede
Copy link

How is it possible to refresh my token when I already haven my asana.Client (oauth)

In the fist step I gained the access_token via the method fetch_token (asana.Client.session.fetch_token)
Then I found the methods refresh_token from request_oauthlib.OAuth2Session.
This method though is not implemented by the child class asana.AsanaOAuth2Session

So asana.AsanaOAuth2Session implements fetch_token but not refresh_token. Why is that and how can I refresh the token then??

marfrede added a commit to marfrede/asana-number-nerd that referenced this issue Jan 16, 2023
…errors because all untyped and missing oauth functions (refresh_token is not implemented: Asana/python-asana#162))
@jv-asana
Copy link
Contributor

Hi @marfrede, as you have stated we don't have a method implemented for refresh_token. Other developers have found solutions around this. See this discussion #108 for more info.

We are currently evaluating approaches to generating our python library so it can be kept up to date and modern. If you have any suggestions or feature requests let us know.

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

No branches or pull requests

2 participants