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 is received but the client code is not notified about it #166

Open
dodikk opened this issue Apr 10, 2015 · 2 comments
Open

Comments

@dodikk
Copy link

dodikk commented Apr 10, 2015

    if (authorisationStatusChanged) {
        if (accessToken) {
            if ([delegate respondsToSelector:@selector(oauthClientDidGetAccessToken:)]) {
                [delegate oauthClientDidGetAccessToken:self];
            }
        } else {
            if ([delegate respondsToSelector:@selector(oauthClientDidLoseAccessToken:)]) {
                [delegate oauthClientDidLoseAccessToken:self];
            }
        }
    } else {


// This line is IDLE since NXOAuth2AccountStore does not implement an optional method
----->   if ([delegate respondsToSelector:@selector(oauthClientDidRefreshAccessToken:)]) {
            [delegate oauthClientDidRefreshAccessToken:self];
        }
    }

The - (void)accountDidChangeAccessToken:(NSNotification *)aNotification; method is not invoked either

@dodikk
Copy link
Author

dodikk commented Apr 10, 2015

Fixed in #167

@bmctigue
Copy link
Contributor

Any chance we can get this fix merged? I need the notification for refreshing the token! Thanks.

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