Firebase多个帐户同时签名 [英] Firebase Multiple Accounts are signed at the same time

查看:86
本文介绍了Firebase多个帐户同时签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的用户使用多个帐户登录(不链接多个提供商)

I want my users to sign in with multiple accounts (Not linking multiple providers)

类似于gmail,它允许您同时使用多个已登录帐户 您可以同时检查所有帐户的所有收件箱

like gmail, it allows you to use multiple signed in accounts at the same time you can check all inboxes for all accounts at the same time

例如我是一个用户,我想使用两个帐户 john@example.com& john21@example.com

e.g. I am a User and I want to use two accounts john@example.com & john21@example.com

我希望两个电子邮件都已登录(在这种情况下,有两个身份验证令牌)

I want both emails signed in (there are two auth tokens in this case)

我在Firebase文档中进行了搜索,找不到任何内容

I have searched about it in Firebase docs, I couldn't find anything

在Firebase身份验证中有可能吗?

Is this possible in Firebase Auth?

推荐答案

从一个项目开始,不,我不认为您可以让两个用户登录.

From one project, no i don't think you can have two users signed in.

您可以创建另一个Firebase项目,然后在其中添加您的应用(您可以在任意一个中添加sha-1).然后,您可以查找他们在一个应用程序中使用两个Firebase项目的方法.

You can create another Firebase project and add your app there (you'll be able to add your sha-1 on either one). You can then look up their approach to using two Firebase projects in one app.

如果有两个要登录的项目,则可以用这种方式与两个用户登录.您必须自己管理两个数据库中的用户,即同一用户必须在两个项目中都拥有一个具有相同凭据的帐户.

You'll be able to sign in with two users in this way if there are two projects to sign in with. You'll have to manage your users across both the databases on your own i.e same user will have to have an account with same credentials made in both the projects.

这很复杂,但是可以做到.我在我的应用程序中同时使用来自两个单独项目的匿名登录,两个用户都是相同的...只是他们的项目不同.

It's complicated but it can be done. I use anonymous sign in from two separate projects simultaneously in my app, both users are the same... Just their projects are different.

这篇关于Firebase多个帐户同时签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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