'How to send additional attributes in POST Request of https://identitytoolkit.googleapis.com/v1/accounts:signUp

I am trying to send additional attributes along with standard values in request body of IdentityToolKit signUp and signIn APIs. for example

POST API : https://identitytoolkit.googleapis.com/v1/accounts:signUpkey=mykey

{
    "email": "[email protected]",
    "password": "************",
    "returnSecureToken": true,
    "type":"student"
}

Here type student is an extra attribute I am trying to send to backend while signUp and signIn, But technically, it is not present in decoded jwt. How can i achieve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source