简体   繁体   English

使用 firebase 管理员与 REST

[英]Use firebase admin with REST

I'm using Deno instead of node as a runtime, which makes me unable to use firebase-admin .我使用 Deno 而不是 node 作为运行时,这使我无法使用firebase-admin I would like to implement the listUsers from the admin sdk in REST, but have not found any REST api references.我想在 REST 中实现来自管理员 sdk 的listUsers ,但没有找到任何 REST Z8A5DA52ED12054E72CA7D 参考。 Is there a way to use the firebase-admin sdk with REST?有没有办法将 firebase firebase-admin sdk 与 REST 一起使用?

You are looking for the Identity Toolkit APIs, the accounts:batchGet to be specific.您正在寻找 Identity Toolkit API,具体而言是accounts:batchGet You'll need an access token to use those APIs since you cannot use default credentials with the REST API.您需要访问令牌才能使用这些 API,因为您不能将默认凭据与 REST API 一起使用。 Checkout the documentation for the same.查看相同的文档

You can use the API explorer linked above to test APIs from the browser itself.您可以使用上面链接的 API 资源管理器从浏览器本身测试 API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM