/auth/setpassword
Description:
The /auth/setpassword endpoint allows users to set after they have verified their account.
Method:
POST
Request Payload:
Parameter | Type | Description |
---|---|---|
password | string | The new password to be set. |
See example response from the examples below
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/auth/setpassword \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"password": "testpassword"
}'
{
"message": "Password set successfully"
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
success
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/auth/setpassword \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"password": "testpassword"
}'
{
"message": "Password set successfully"
}