Hello All
can you please help me to find out that why every time access key is expire.
i have a website where i need to fetch all the races of a user who have account in strava, now i have created that user access token key and store in my database, every time when user come and want to see all races its showing that your access key is expire, again i have to regenerate the key and the process going on.
kan anyone please tell me why its happen?
This is intended, you got a refresh_token in order to update the access_token. You should go through the explanations in https://developers.strava.com/docs/getting-started/#oauth again.
Thank you for your help!
The piece I think we are missing is once authorized, we are not able to get the client ID so that we can fetch the refresh token. Does anyone know a way to retrieve this client ID once a user authorizes without that user having to go into their account or copy that ID out of the url?
We are only getting access for 6 hours before the authorization expires.
The user doesn’t have a client id, only your app has it and you can copy it from your API settings page https://www.strava.com/settings/api
Also you don’t fetch the refresh token as an extra step, it always comes alongside the access token.
Reply
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.