firebase - 是否可以在 Firebase 中使用 curl 设置自定义声明?
问题描述
我正在尝试使用 curl 对用户设置 setCustomClaims。可能吗?到目前为止我得到了这个
curl 'https://identitytoolkit.googleapis.com/v1/accounts:setCustomClaims?key=[API_KEY]' \
-H 'Content-Type: application/json' \
--data-binary '{"email":"[user@example.com]","password":"[PASSWORD]"}'
解决方案
推荐阅读
- c# - Unity 如何让 GameObject 实例在被引用时被销毁?
- arrays - Python中检测零填充字节数组的最快方法
- sql - 如何在这个特定的 T-SQL 查询中使用表变量?
- javascript - 如何从 Xpath 中的 javascript 事件处理程序获取链接?
- laravel - 如何在 laravel 查询中使用 sum 和 groupBy
- javascript - 这篇反应文章中的“关闭”是什么意思?
- c# - 如何使用手动设置的 RSA 参数加密和解密字符串?为什么 RSACryptoServiceProvider 抛出?
- vue.js - Vue.js VueX 属性未定义问题
- php - php 插入我的数据库后,日期始终为 1970-01-01 和 2018-08-31
- react-native - 如何修复错误“没有这样的规模错误:无法发布 CodePush 更新”?