How to identify a Google OAuth2 user?

后端 未结 6 958
误落风尘
误落风尘 2020-11-27 10:48

I used Facebook login to identify users. When a new user comes, I store their userID in my database. Next time they come, I recognized their Facebook ID and I know which use

6条回答
  •  清酒与你
    2020-11-27 11:15

    "Who is this?" is essentially a service; you have to request access to it as a scope and then make a request to the Google profile resource server to get the identity. See OAuth 2.0 for Login for the details.

提交回复
热议问题