Skip to content

Instantly share code, notes, and snippets.

@frankV
Created June 9, 2015 15:34
Show Gist options
  • Save frankV/319d2a74261485526e40 to your computer and use it in GitHub Desktop.
Save frankV/319d2a74261485526e40 to your computer and use it in GitHub Desktop.
$cordovaOauth.twitter(appConfig.TW_CLIENT_ID, appConfig.TW_SECRET).then(function(result) {
// $localStorage.twitterToken = result.access_token;
console.log(result);
$location.path("/profile");
}, function(error) {
alert("There was a problem signing in! See the console for logs");
console.log(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment