Sensory-Web / Beer-Sense

Front-end for Beer Sense web app
perceptualentropy.com/taste
0 stars 0 forks source link

Tie OAuth user to Parse user #6

Open JonBoley opened 10 years ago

JonBoley commented 10 years ago

When a person uses external auth service (e.g., Google/Untappd/Twitter), that needs to map to a specific user in Parse

JonBoley commented 10 years ago

from http://blog.parse.com/2013/12/03/bring-your-own-login/

Parse.User.become("session-token-here").then(function (user) {
  // The current user is now set to user.
}, function (error) {
  // The token could not be validated.
});

Also, check out this tutorial: https://parse.com/tutorials/adding-third-party-authentication-to-your-web-app