Skip to main content

Creating Users

In order to capture all users in your application, add the following code to your app's sign-up and login flows:

// 1. Sign-up / login logic

// 2. Create user in Warrant
warrantClient
.createUser()
.then((newUser) => console.log(newUser))
.catch((error) => console.log(error));

// 3. Finish sign-up / login logic