K
Kinde10mo ago
Falah

create user using management api

is there a way where i can create user directly with email and password using, where the user can just login without the user need to verify the email while logging in for the first time for the first time
const usersResponse = await fetch(
"https://{business_name}.kinde.com/api/v1/user",
{
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: `Bearer ${access_token}`,
},
body: JSON.stringify({
profile: {
given_name: firstName,
family_name: lastName,
},
organization_code: "org--------",
identities: [
{
type: "email",
details: {
email: email,
password: password,
},
},
],
}),
}
);
const userData = await usersResponse.json();
const usersResponse = await fetch(
"https://{business_name}.kinde.com/api/v1/user",
{
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: `Bearer ${access_token}`,
},
body: JSON.stringify({
profile: {
given_name: firstName,
family_name: lastName,
},
organization_code: "org--------",
identities: [
{
type: "email",
details: {
email: email,
password: password,
},
},
],
}),
}
);
const userData = await usersResponse.json();
1 Reply
onderay
onderay10mo ago
Not just yet, we are working on support to be able to set a users password via API - https://updates.kinde.com/board/set-a-hashed-user-password-via-api And the ability to tag an email as already verified is available via user import by .csv. Just not API yet, but I have passed this over to the team
Set a hashed user password via API
Set a hashed user password via API
Want results from more Discord servers?
Add your server