createUser()
Creates a user without a sign-up flow — for imports and admin tools.
function createUser(params: CreateUserParams): Promise<User>Parameters
emailAddressstring[]RequiredAddresses to attach; the first becomes primary.
passwordstringOptional. Must meet your password policy.
publicMetadataobjectOptional metadata readable from the frontend.
Usage
keyward is the backend client. Create it once with createKeywardClient({ secretKey }) and reuse it.
const user = await keyward.users.createUser({ emailAddress: ["ada@example.com"] });Returns
The created User.
Updated
What did you think of this content?