首页 > 解决方案 > 是否可以在 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]"}'

标签: firebasecurlfirebase-authentication

解决方案


推荐阅读