-
Notifications
You must be signed in to change notification settings - Fork 26
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
Strava Refresh Token #40
Comments
Hi, did you take a look at the example script? Do you get that script working? |
Yes, This is exactly the example script. I set the session values with the token that was generated 2 days ago, and this error appears. |
Hi there! i'm also having issues with your example. I modifiied it the way:
After opening:
in my browser i am getting:
Do you have any idea on whats going wrong? Thank you! @Geovanek: have a look at the Readme.md |
I went back to the original code at the link above |
Ok perfect when i just call |
Is valid for 6hs. |
I believe I was able to make my app automated by placing the code as follows. It returns the user data from the DB, connects to the strava API, if the token has expired, returns a new token and retries the connection.
|
@Geovanek Thank you very much! The code seems to work for me too :) |
This thread was a lifesaver. I added the following code to auth.php above the line "// Setup the API instance with authentication tokens, if possible:", and it kickstarted my otherwise frozen script. I guess we'll see when I wake up in the morning if this is enough to keep things ticking.
|
Work perfectly. Thanks friends. I think the source need to implement auto refresh for easier to use. Or we can extend and implement auto refresh feature |
I am unable to implement the token update, can you help me.
Fatal error: Uncaught RuntimeException: Strava access token needs to be refreshed in /
The text was updated successfully, but these errors were encountered: