How to link Google + signed in users on Parse backend on Android?

后端 未结 5 705
名媛妹妹
名媛妹妹 2020-12-14 07:58

I\'ve been using Parse for 3 months in my android app. Now I want to add email login and social sign ons (Facebook and Google+) in the app. I have successfully added email a

5条回答
  •  离开以前
    2020-12-14 08:36

    There's a question about this on Parse's questions. It's right here and I'm pretty sure it answers your questions.

    https://parse.com/questions/google-plus

    It links to the parse blog, that has some workarounds on this.

    It says that you can add any login into ParseUser. You would be doing something like this:

    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.
    });
    

    Another site where you should take a look: https://parse.com/tutorials/adding-third-party-authentication-to-your-web-app

    This last one is official and has an example code

提交回复
热议问题