How to Handle LinkedIn OAuth Refresh Tokens?

0
8
Asked By CuriousCoder92 On

I've been struggling with the LinkedIn OAuth implementation on my site. Users can log in using LinkedIn, and I'm utilizing the access token to retrieve data. The access token is valid for two months, and I found out it's supposed to be possible to refresh it. However, I can't find any solid info on how to actually perform the refresh. The standard OAuth flow includes a refresh token, which LinkedIn seems to lack. Has anyone dealt with this before and can guide me on how to manage token refresh for LinkedIn?

2 Answers

Answered By TechieTina83 On

From what I've gathered, it looks like LinkedIn doesn't allow token refreshes for regular users. The refresh token feature is only available for certain partnerships. So, unfortunately, you'll need to redirect users to log in again before the token expires. It can be frustrating since their documentation is pretty misleading about this.

HelpfulHank77 -

Yeah, it's quite annoying that they make it seem possible but then you end up having to get users to reconnect every couple of months.

Answered By WebWizard47 On

I was checking out Google's OAuth documents, and they do offer refresh tokens. But sadly, LinkedIn requires a specific partnership to use refresh tokens. Most other OAuth providers make it easier, so LinkedIn is a bit of an outlier here.

CuriousCoder92 -

Right! It's a bummer because the standard is so different across platforms.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.