gpt4 book ai didi

firebase - Firebase 身份验证中被视为 API 限制的内容

转载 作者:行者123 更新时间:2023-12-04 08:25:46 26 4
gpt4 key购买 nike

我在 https://firebase.google.com/docs/auth/limits 中阅读了有关 Firebase 身份验证限制的文档.它指出每个项目的限制为 1000 个请求/秒。没有关于这些 API 限制是什么的示例或任何解释。 API 限制中计入了哪些类型的操作?是否verifyIdToken()createUser()在 Admin SDK 中算作 API 请求吗?
我也知道有一个重复的问题 here但它没有得到很好的回答。

最佳答案

我已经向 Firebase 支持人员询问了 API 限制,并得到了以下回复:

The API’s quota applies depending on the Firebase API you want touse. In this case the API quota applies to the use of the Firebase Auth REST API. Using it, you can query the Firebase Auth backendthrough a REST API. Also, it can be used for various operations suchas creating new users, signing in existing ones and editing ordeleting these users.

To create, and refresh a token the quota will apply, if you use theREST API to do the operations. However, even if you don’t use the RESTAPI there are other internal quotas associated with the refreshing ofthe token. In order to avoid refreshing the token so many times, setforceRefresh to false to minimize unneeded token refreshes when avalid token may still be cached.


我还询问了使用官方 sdk 刷新 token 时的内部配额,并得到了以下回复:

Unfortunately, some quotas are internal, and confidential information.For this reason, I am not able to share it with you. However, if youreceive quota errors you can contact us


速率限制包括客户端和管理 SDK:

The API limits encapsulates every request that comes from the API.This includes various operations such as creating new users, signingin existing ones, and editing or deleting users. The limits apply torequests coming from both the Client and Admin SDK. This means thatFirebase allows you to have 1000 simultaneous requests/second (bothfrom Client and Admin SDK) in a project.~ Firebase Support

关于firebase - Firebase 身份验证中被视为 API 限制的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65272165/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com