Skip to content

Instantly share code, notes, and snippets.

@alfredrumss
Created December 5, 2017 20:08
Show Gist options
  • Save alfredrumss/0960cd510e6b5f85cb33126ee24b6912 to your computer and use it in GitHub Desktop.
Save alfredrumss/0960cd510e6b5f85cb33126ee24b6912 to your computer and use it in GitHub Desktop.
$auth.authenticate(socialnetwork)
.then(function(response){
if(response.status == 200){
$auth.setToken(response.data.token)
loginAutentication(response)
}
})
.catch(function(data){
console.log(data)
$scope.loading = false
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment