fornaxM / mpoauthconnection

Automatically exported from code.google.com/p/mpoauthconnection
0 stars 0 forks source link

check if the user is already authenticated #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have a boolean to check whether the user has already done 
the OAuth dance or 
not.

Original issue reported on code.google.com by westb...@gmail.com on 17 Feb 2009 at 8:51

GoogleCodeExporter commented 9 years ago
Through some testing in Simulator, which allows an easy wipe of keychain 
contents,
this method seems to work for me:

- (BOOL)userHasAuthenticated
{
    if ([self findValueFromKeychainUsingName:@"oauth_token_access_secret"] == nil)
    {
        return NO;
    }
    else 
    {
        return YES;
    }
}

Original comment by weeb...@gmail.com on 11 Apr 2009 at 8:36

GoogleCodeExporter commented 9 years ago

Original comment by karl.a...@gmail.com on 12 Apr 2009 at 8:06