Skip to content

Commit

Permalink
Merge pull request #3 from roy-e/patch-1
Browse files Browse the repository at this point in the history
requestToken response parsing fix
  • Loading branch information
indieocean committed Sep 9, 2011
2 parents c355311 + 372c3e3 commit 9a845b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions titanium_oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ var TitaniumOAuth = function(ck, cs) {
}

// Set Tokens
Ti.App.Properties.setString('oauthToken', this.responseText.match(/oauth_token=([^&]+)&/)[1]);
Ti.App.Properties.setString('oauthTokenSecret', this.responseText.match(/oauth_token_secret=([^&]+)&/)[1]);
Ti.App.Properties.setString('oauthToken', this.responseText.match(/oauth_token=([^&]+)/)[1]);
Ti.App.Properties.setString('oauthTokenSecret', this.responseText.match(/oauth_token_secret=([^&]+)/)[1]);

// Access Token Secret
accessor.tokenSecret = Ti.App.Properties.getString('accessTokenSecret');
Expand Down

0 comments on commit 9a845b7

Please sign in to comment.