使用 Firebase 身份验证链接亚马逊帐户 [英] Amazon account linking using firebase authentication

查看:31
本文介绍了使用 Firebase 身份验证链接亚马逊帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何选项可以使用 firebase 实现亚马逊帐户链接,我们知道我们可以使用 firebase auth provider 为 google、facebook 和 twitter 实现帐户链接.

Is there any option to implement amazon account linking using firebase, We know we can implement account linking for google, facebook and twitter using firebase auth provider.

我正在使用 Firebase 身份验证为 google、twitter、facebook 实现帐户链接.下面的代码显示

I am implementing account linking for google, twitter, facebook using firebase auth. The below code shows

firebase.auth.GoogleAuthProvider()
firebase.auth.FacebookAuthProvider()
firebase.auth.TwitterAuthProvider()

然后我得到结果

firebase.auth().signInWithRedirect(provider)
firebase.auth().getRedirectResult()

我想使用亚马逊登录页面链接帐户.有什么方法可以做到或请提供任何建议以显示亚马逊登录页面然后用户输入电子邮件和密码我想获取用户数据

I want to link account using amazon login page.Is there any way to do it or please provide any suggestion to show amazon login page then user enter email and password i want to get user data

推荐答案

Firebase 身份验证没有用于 Amazon 登录的内置提供程序.这意味着,要允许使用 Amazon 帐户登录 Firebase,您必须创建一个自定义提供程序.

Firebase Authentication has no built-in provider for Amazon sign-in. That means that, to allow signing in to Firebase with Amazon accounts, you'll have to create a custom provider.

目前不支持将自定义提供商帐户链接到现有帐户(来自内置提供商).但是,如果您查看 这个 Github 线程,就会发现一些关于如何通过使用自定义声明或其他机制来实现相同的目的.

Linking custom provider accounts into existing accounts (from built-in providers) is not currently supported. But if you look at this Github thread, there's some good info on how to accomplish the same by using custom claims or another mechanism.

这篇关于使用 Firebase 身份验证链接亚马逊帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆