createUser()
Creates a user without a sign-up flow — for imports and admin tools.
function createUser(params: CreateUserParams): Promise<User>Parameters
Name | Type | Description |
|---|---|---|
|
| Addresses to attach; the first becomes primary. |
|
| Optional. Must meet your password policy. |
|
| Optional 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?