Closed interpegasus closed 4 years ago
Yes. That's actually in the README:
If the access token is expired, refresh it before making any requests. You will get back all new tokens.
response = client.oauth_token(
refresh_token: '...',
grant_type: 'refresh_token'
)
response.access_token # => String, new access token
response.refresh_token # => String, new refresh token
response.expires_at # => Time, new timestamp when the access token expires
Perfect! Thank you
Hi, According to the Strava dashboard the access token expires. But the refresh token does not.
I would like to know if it is possible to get the most recent non expired access-token, using only the refresh-token, in a backend app, without user interaction?
Currently my backend uses:
But the token expires often.
Thanks