Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh token error #3

Open
AdrianMW opened this issue Aug 18, 2015 · 1 comment
Open

Refresh token error #3

AdrianMW opened this issue Aug 18, 2015 · 1 comment

Comments

@AdrianMW
Copy link

Hi,

I am getting the following error when I try and refresh tokens:

connection failed with response 503 (service unavailable)

Here is the code I wrote (placed on line 25 of the demo app)

if (linkedIn.isValidToken) {
        [linkedIn refreshAccessTokenWithSuccess:^(NSString *accessToken) {NSLog(@"Success");} failure:^(NSError *error){ NSLog(@"Error");}];
    }

Also the error block on the refresh access token doesn't look to have been called

Cheers

@AdrianMW
Copy link
Author

Hey,

I can see this in the LinkedIn documentation:
https://developer.linkedin.com/docs/oauth2

To refresh an Access Token, simply go through the authorization process outlined in this document again to fetch a new token.  During the refresh workflow, provided the following conditions are met, the authorization dialog portion of the flow is automatically skipped and the user is redirected back to your callback URL, making acquiring a refreshed access token a seamless behind-the-scenes user experience:

The user is still logged into www.linkedin.com
The user's current access token has not expired

Does this method work?

@ahmetkgunay ahmetkgunay reopened this Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants