简体   繁体   English

如何验证提供商(Google或Facebook)是否已经使用了电子邮件地址?

[英]How can I verify if an email address is already use by a provider (Google or Facebook)?

In my web app I use login Firebase ( Google and Facebook ). 在我的Web应用程序中,我使用登录Firebase( Google和Facebook )。

But I would like to prevent the user if their email address is already in use by Google or Facebook . 但是我想阻止用户,如果他们的电子邮件地址已经被GoogleFacebook使用

Example: 例:

If my user would like connect with Google , their email address is user@example.com and after they would like to connect but with Facebook and his email address for Facebook is the same (user@example.com) . 如果我的用户想与Google联系 ,则他们的电子邮件地址为user@example.com ,在他们想与之联系但与Facebook联系之后 ,他用于Facebook的电子邮件地址也相同(user@example.com)

How I can verify if the email address already exists? 如何验证电子邮件地址是否已经存在?

Check out this links on firebase docs it should help you out with facebook login there are more examples on the site including that of google login 在Firebase文档上查看此链接,它应该可以帮助您使用Facebook登录,网站上还有更多示例,包括Google登录

https://firebase.google.com/docs/auth/web/facebook-login#handling-account-exists-with-different-credential-errors https://firebase.google.com/docs/auth/web/facebook-login#handling-account-exists-with-different-credential-errors

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用访问令牌获取Facebook用户的电子邮件地址和一些基本信息 - How do I use the access token to get email address and some basic info of facebook users 当在该行中输入电子邮件地址时,如何让 Google 表格通过电子邮件发送该行? - How can I have Google Sheets email a row when an email address in entered into that row? 如何在ColdFusion中验证新的电子邮件地址正确 - How to verify a new email address is correct in ColdFusion Firebase 身份验证网络:如何验证电子邮件地址 - Firebase authentication web: how to verify email address 我需要向OAuth2提供程序(例如Google)注册域,还是可以使用自己的IP地址/本地主机发送请求? - Do I need to register a domain with an OAuth2 provider, like google, or can use my own IP address/Localhost to send requests? 如何更新流星中的电子邮件地址? - How can I update an email address in meteor? 如何使用jQuery验证电子邮件地址? - How can I validate email address with jQuery? 如何验证 JavaScript 中的 email 地址? - How can I validate an email address in JavaScript? 如何使用量角器来验证URL? - How can I use protractor to verify an URL? Google Apps 脚本 - 如何发送带有回复但屏蔽发件人地址的电子邮件? - Google Apps Script - How can I send an email WITH reply-to but MASKING the sender address?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM