nxtbgthng / OAuth2Client

Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec)
855 stars 217 forks source link

Fixed bug where client delegate wasn't reassigned to account #195

Closed sirnacnud closed 8 years ago

sirnacnud commented 8 years ago

When the NXOAuth2Client is created in NXOAuth2AccountStore and passed to initAccountWithOAuthClient of NXOAuth2Account, the delegate wasn't reassigned to the account because oauthClient is nil when initAccountWithAccessToken is called.

On a side note, I believe oauthClient.delegate = self; in initAccountWithAccessToken could be removed, as oauthClient will always be nil since the object was just allocated.