Skip to content

Instantly share code, notes, and snippets.

@grosscorporation
Last active September 30, 2019 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grosscorporation/6b0c436b2cd21f112963fd5ca76f3fec to your computer and use it in GitHub Desktop.
Save grosscorporation/6b0c436b2cd21f112963fd5ca76f3fec to your computer and use it in GitHub Desktop.
Parse Server Signup
const authData = {
"id": profile.getId(),
"id_token": id_token
}
const options = {
"authData": authData
}
const user = new Parse.User();
user._linkWith('google', options).then(function(user) {
console.log('Successful user._linkWith(). returned user=' + JSON.stringify(user))
}, function(error) {
console.log('Error linking/creating user: ' + error)
alert('Error linking/creating user: ' + error)
// TODO handle error
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment