首页 > 解决方案 > 如何在 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 中不存在。我怎样才能做到这一点?

标签: google-cloud-platformgoogle-authenticationgoogle-identitygoogle-identity-toolkit

解决方案


推荐阅读