listUsers()
Lists users, newest first by default.
function listUsers(params?: ListUsersParams): Promise<Paginated<User>>Parameters
limitnumberHow many to return, 1–500. Default 10.
offsetnumberHow many to skip.
querystringMatch email, phone, name or ID.
orderBystringcreated_at, -created_at, last_sign_in_at …
Usage
keyward is the backend client. Create it once with createKeywardClient({ secretKey }) and reuse it.
const { data, totalCount } = await keyward.users.listUsers({ limit: 20, orderBy: "-created_at" });Returns
{ data: User[], totalCount: number }.
Updated
What did you think of this content?