Request
Body Params application/json
{
"thirdPartyId": "google",
"clientType": "web",
"redirectURIInfo": {
"redirectURIOnProviderDashboard": "https://yourdomain.com/callback",
"redirectURIQueryParams": {
"code": "neqmpdsfuqe141m5lk437867masdf",
"state": "ljayfgqewertbh13245njw0"
},
"pkceCodeVerifier": "abcd1234"
}
}
Request Code Samples
curl --location --request POST 'http://localhost:8000//<tenantId>/signinup' \
--header 'Content-Type: application/json' \
--data-raw '{
"thirdPartyId": "google",
"clientType": "web",
"redirectURIInfo": {
"redirectURIOnProviderDashboard": "https://yourdomain.com/callback",
"redirectURIQueryParams": {
"code": "neqmpdsfuqe141m5lk437867masdf",
"state": "ljayfgqewertbh13245njw0"
},
"pkceCodeVerifier": "abcd1234"
}
}'
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"
}
}
]
},
"createdNewRecipeUser": true
}
Modified at 2024-10-01 07:35:40