How to detect if an email is a Google Account?

前端 未结 6 1477
一向
一向 2021-02-19 12:16

Me and some guys here are working on an start up. We are currently using Google OpenID API to manage registration and login to our app, but we want to migrate to a easier user r

6条回答
  •  梦谈多话
    2021-02-19 12:25

    I do this by having a dummy file, to which I add the email address using the addViewer function. I do this in a try...catch. If an error is caught then I set my local flag to say "not a google account". If no error, I then remove them as a viewer of my dummy file and set my flag to say the email address is a legit google account.

提交回复
热议问题