我应该使用哪个API来交换Firebase自定义令牌?
我读过许多关于使用Firebase自定义令牌的文章。总而言之,有三个步骤:我应该使用哪个API来交换Firebase自定义令牌?,firebase,firebase-authentication,Firebase,Firebase Authentication,我读过许多关于使用Firebase自定义令牌的文章。总而言之,有三个步骤: 使用firebase admin.auth().createCustomToken(/*用户ID*/)创建自定义令牌 通过交换自定义令牌获取ID令牌 将文档发送到Firestore 我可以从以下两个API获得ID令牌 https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=API_KEY https://identi
firebase admin.auth().createCustomToken(/*用户ID*/)创建自定义令牌
https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=API_KEY
https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken?key=API_KEY
这两个谷歌API中,我应该在新项目中使用哪一个?
我还想知道一些信息:
- 这些API实际上是相同的吗
- 除了名称
和verifyCustomToken
之外,两者之间的区别是什么accounts:signwithcustomtoken
- 我是否应该使用v3api,因为它不是v1?一些教程仍然参考v1api
https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=API_KEY
GitKitV3的发布涉及到GitKitV1和v2 API的大量使用,导致端点被重命名
向前看,利用这一点。我想这可能是相关的,这是我几个月前提出的问题