小编The*_*722的帖子

无法使用 Firebase 中的电子邮件链接重新进行身份验证

我的网络应用程序中有电子邮件链接登录设置,并且运行良好。但是,我需要在执行特定操作之前重新验证用户身份。

我正在使用以下代码重新进行身份验证:

let credential = firebase.auth.EmailAuthProvider.credentialWithLink(userEmail, window.location.href);

firebase.auth().currentUser.reauthenticateWithCredential(credential).then(function (usercred: any) {
     console.log('Reauthentication test successful.');
}).catch(function (error: any) {
     console.log('Reauthentication test failed.');
});
Run Code Online (Sandbox Code Playgroud)

但是,凭证每次都会抛出错误:

code: "auth/argument-error"
message: "Invalid email link!"
Run Code Online (Sandbox Code Playgroud)

即使我尝试更改 URL,情况也是如此。该 url 在控制台中获得授权,并且是 https(我最初在 localhost 上进行测试,认为这可能是问题所在)。

有任何想法吗?

javascript firebase firebase-authentication

6
推荐指数
1
解决办法
1200
查看次数

Firestore的最大并发连接数是多少?

我知道Firebase的实时数据库的最大同时连接数大约是100,000,但是对于Firestore来说呢?

例如,有多少用户可以主动监听文档上的文档更改?对此的"舒适"限制是什么(不仅仅是理论上的最大值)?

max simultaneous firebase google-cloud-firestore

5
推荐指数
1
解决办法
2446
查看次数

更改 ImageList 的 ImageSize 属性显示空白图像

在 Visual Studio 中的 VB.Net 解决方案中,我有一个 ListView 和一个与该 ListView 关联的 ImageList。它被设置为LargeImageList 和SmallImageList。

这是不以编程方式更改 ImageList 的 ImageSize 属性的情况下的样子:

但是,如果我通过以下方式调整 ImageList 的大小:

ImageList1.ImageSize = New Size(64, 64)
Run Code Online (Sandbox Code Playgroud)

或任何其他尺寸,我得到这个:

之后我尝试调用ListView1.Refresh(),仍然没有。

我什至试过:

ListView1.LargeImageList.ImageSize = New Point(64, 64)
Run Code Online (Sandbox Code Playgroud)

项目运行时如何动态设置图标的大小?我需要能够将它们调整为多种尺寸(即 32x32、64x64、96x96 等)

ImageList 中的图像都是 128x128 的,这样可以更容易地缩小它们。

.net vb.net listview imagelist

4
推荐指数
1
解决办法
3282
查看次数

是否为 Firebase 身份验证启用 CICP 活动日志记录活动?

我的项目使用 Firebase 身份验证。

我想为合规性启用身份验证活动的日志记录。Google 为其 Google Cloud CICP(客户和合作伙伴的云身份)提供了此功能(此处文档)。

我知道 CICP 说它与 Firebase 身份验证兼容,但这是否意味着如果我启用它,它会记录我的 Firebase 项目的身份验证活动?或者它只会记录来自 CICP 直接创建的帐户的活动?谢谢!

firebase google-cloud-platform firebase-authentication

1
推荐指数
1
解决办法
142
查看次数

Firebase 管理员如何创建无密码登录的用户?

我正在查看以下文档以使用 Node.js Firebase 管理 SDK 创建用户:https ://firebase.google.com/docs/auth/admin/manage-users#create_a_user

但是,我想创建一个无密码(电子邮件链接)登录的用户,而不是密码。这可能吗?

如果我不为用户指定密码,会发生什么情况?

我的网络应用程序当前使用无密码登录,因此可以正常工作。

node.js firebase firebase-authentication firebase-admin

1
推荐指数
1
解决办法
1689
查看次数