-
Notifications
You must be signed in to change notification settings - Fork 317
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
Problem with refreshing token #420
Comments
Hello! I believe your problem is with the client initialization. Since you are not using PKCE, you need to include the app_secret when you initialize the client in order for it to properly refresh. |
I did try with PKCE, and I tried adding the app_secret. No luck |
The next steps to debug would be to try printing off |
hey @rogebrd I think i am facing the same issue, and the reason is short-lived tokens https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Tokens-only-valid-for-4-hours-from-app-console/m-p/425358/highlight/true#M22718 |
Hi @kaleb-keny, We made a conscious decision to change the behavior of tokens from long living to short living in order to make our platform more secure. If you are running into issues with the token expiring, you will need to be using refresh tokens. The app console gives short lived tokens as a way to quickly get on boarded to the system, this is not meant to be a permanent solution for getting tokens. It should be quickly replaced with a proper oauth flow. Thanks, |
yeah that makes sense, thank you |
i think their is problem in auth either you have entered wrong authorization code,etc.
*pkce is mainly for web apps when you can't hide app_secret from source code for using it in background you shouldn't use pkce and according to dropbox it's less secure than normal auth flow and if you want to store your app key somewhere then you can convert it in base64,etc. and then store it like in plain text file or in database,etc. |
i am also new to this, so i am also learning all this by doing and experiencing the problems |
I'm not making it work the SDK for renewing the authorization token, so after 4hs my apis stop working. Even the example returns error:
it returns:
I'm using a windows machine with the intel python version 3.7 as I'm using it in combination with tensorflow
I've tried every possible SO post but not sure where the error can be.
The text was updated successfully, but these errors were encountered: