Signup a user with email ID and password
Request
Body Params application/json
{
"formFields": [
{
"id": "email",
"value": "johndoe@gmail.com"
},
{
"id": "password",
"value": "testPass123"
}
]
}
Request Code Samples
curl --location --request POST 'http://localhost:8000/auth/signup' \
--header 'rid: emailpassword' \
--header 'Content-Type: application/json' \
--data-raw '{
"formFields": [
{
"id": "email",
"value": "johndoe@gmail.com"
},
{
"id": "password",
"value": "testPass123"
}
]
}'
Responses
{
"status": "OK",
"user": {
"id": "fa7a0841-b533-4478-95533-0fde890c3483",
"timeJoined": 1638433545183,
"isPrimaryUser": true,
"tenantIds": [
"public"
],
"emails": [
"johndoe@gmail.com"
],
"phoneNumbers": [
"36201234123"
],
"thirdParty": [
{
"id": "google",
"userId": "rq238mrq2389rvq123213"
}
],
"loginMethods": [
{
"recipeId": "emailpassword",
"recipeUserId": "fa7a0841-b533-4478-95533-0fde890c3483",
"verified": true,
"tenantIds": [
"public"
],
"timeJoined": 1638433545183,
"email": "johndoe@gmail.com",
"phoneNumber": "36201234123",
"thirdParty": {
"id": "google",
"userId": "rq238mrq2389rvq123213"
}
}
]
}
}
Modified at 2024-10-01 07:43:34