Last active
September 30, 2019 01:01
-
-
Save grosscorporation/6b0c436b2cd21f112963fd5ca76f3fec to your computer and use it in GitHub Desktop.
Parse Server Signup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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