Skip to content

Commit

Permalink
Fix handling of SFSafariViewController redirect
Browse files Browse the repository at this point in the history
JIRA Issues: PUBPL-1894
  • Loading branch information
nsalmoria authored and Rajul Arora committed Jul 13, 2018
1 parent a2f91a4 commit b111622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TwitterKit/TwitterKit/Social/Identity/TWTRLoginURLParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ - (BOOL)isOauthTokenVerifiedFromURL:(NSURL *)url
{
NSDictionary *parameters = [TWTRNetworkingUtil parametersFromQueryString:url.absoluteString];
NSString *token = parameters[TWTRAuthOAuthTokenKey];
if (token == nil) {
token = parameters[TWTRAuthAppOAuthDeniedKey];
}

return [[[TWTRTwitter sharedInstance] sessionStore] isValidOauthToken:token];
}
Expand Down

0 comments on commit b111622

Please sign in to comment.