ZenArtemis
ZenArtemis
BABetter Auth
Created by ZenArtemis on 4/22/2025 in #help
create user with signUpEmail
I'm trying to create an user on the server with auth.api.signUpEmail I can get the response object, but the user is not inserted in the database:
let result;

try {

const response = await auth.api.signUpEmail({
body: {
password: 'admin1234',
name: 'admin',
},
});

console.log(response)

result = response;

} catch (error) {
await connection.rollback();
console.error('An error occurred during the app_users insertion process:', error);
}
let result;

try {

const response = await auth.api.signUpEmail({
body: {
password: 'admin1234',
name: 'admin',
},
});

console.log(response)

result = response;

} catch (error) {
await connection.rollback();
console.error('An error occurred during the app_users insertion process:', error);
}
4 replies