google-cloud-platform - 如何在 https://identitytoolkit.googleapis.com/v1/accounts:signUp 的 POST 请求中发送附加属性
问题描述
我正在尝试在 IdentityToolKit 注册和登录 API 的请求正文中发送其他属性以及标准值。例如
POST API:https ://identitytoolkit.googleapis.com/v1/accounts:signUpkey=mykey
{
"email": "abc@email.com",
"password": "************",
"returnSecureToken": true,
"type":"student"
}
这里的学生类型是我在注册和登录时尝试发送到后端的一个额外属性,但从技术上讲,它在解码的 jwt 中不存在。我怎样才能做到这一点?
解决方案
推荐阅读
- javascript - 如何将 javascript 成功数据返回到 jQuery 属性
- java - Java,看似随机,开始崩溃 FileHandle.class.getResourceAsStream(path);
- kubernetes - loadBalancerSourceRanges 不适用于谷歌 kubernetes 集群
- .net-core - 在 Service Fabric 来宾可执行文件中运行 dotnetcore 控制台应用程序
- unity3d - 如何使用 Unity 在 ARcore-Augmented Image 场景中显示不同图像的不同预制件?
- python - Python优化了大多数余弦相似向量
- c# - 是否可以将 winforms 状态条和进度条转换为 wpf 状态栏?
- mysql - Mysql查询以获取第一个位置的特定ID
- ruby - IRB 要求 mongo 失败无法加载此类文件——mongo
- oop - 如何在 Dart 中实现继承?