Shmalex
Shmalex

Reputation: 181

LinkedIn Refresh Access Token OAuth 1.0\2.0

Has any one tried to refresh the access token (without requiring user input).

https://developer.linkedin.com/blog/tips-and-tricks-refreshing-access-token

The documentation at the link above makes it seem like this is possible only for OAuth 1.0.

Upvotes: 1

Views: 1743

Answers (1)

Owen Cao
Owen Cao

Reputation: 8183

you're right, the document at the link is just for OAuth 1.0. For OAuth 2.0, LinkedIn Document just saysAccess tokens have a life span of 60 days. You should have a mechanism in your code to refresh the tokens before they expire in order to continue using the same access tokens. I haven't found any details about how to refresh token without user input in LinkedIn OAuth 2.0. Standard OAuth 2.0 should support this function.

And here's a talk about this in LinkedIn Developers Forum.

Upvotes: 3

Related Questions