Does Strava refresh_token ever expires?

557 views
Skip to first unread message

converge

unread,
Sep 23, 2021, 4:39:59 AM9/23/21
to Strava API
Hi,
I would like to know if the Strava refresh tokens ever get expired?


Real scenario:
my user authenticates and my application stores the "access and refresh tokens"
my user dont user my application in the past 3 years
my "access token" is expired (after 6hrs)
and the "refresh token" I stored 3 years ago is available.

Question is, will a new access token be issued using my 3 years old refresh token?

kingo...@gmail.com

unread,
Sep 23, 2021, 9:07:24 AM9/23/21
to Strava API
As per the docs. refresh tokens only expire when they are used and following explicit deauthorization. So yes, in theory the refresh token should work 3 seconds or 3 years after it was issued.

In the worst case that it didn't work due to some strange undocumented reason, the athelete would have to re-authorise your application.

Gowtham

unread,
Sep 23, 2021, 9:12:15 AM9/23/21
to Strava API
Greetings.

Not too long ago, I had to reauthorize my application. 

Best regards,
Gowtham

-
Gowtham, PhD
Director of Research Computing, IT
Research Associate Professor, College of Computing
Michigan Technological University

https://hpc.mtu.edu


--
You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strava-api/531140e5-653f-4aa9-b5ca-f2b1aebcc2adn%40googlegroups.com.

Josh Kadis

unread,
Sep 24, 2021, 10:00:03 AM9/24/21
to Strava API
When you refresh the access_token, the response includes the current value of the refresh_token. So you can update both both tokens in the database, just in case the refresh_token has changed. That's very unlikely but you never know with this API...
Reply all
Reply to author
Forward
0 new messages