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: {
                    email: 'app@domain.com',
                    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);
        }
Was this page helpful?