Currently, I am implementing a strategy to renew Linkedin OAuth2 access tokens.
When starting the OAuth process in the browser, the dialogue is skipped and a new code is generated. This code is then used to acquire a fresh access_token that differs from the previous one. However, the expires_in
value (time until expiration) is actually shorter than in the previous access_token because it refers to the same expiration date.
This indicates that the expiration date has essentially not been prolonged, which defeats the purpose of refreshing the access token.
Does refreshing an access token result in extending the expiration time?
Is there something crucial that I am overlooking here?
(Maybe the expiration date can only be elongated after a certain duration of use?)