mirror of
https://github.com/appwrite/appwrite
synced 2026-05-16 05:28:31 +00:00
503 B
503 B
import { Client, Users, PasswordHash } from "@appwrite.io/console";
const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const users = new Users(client);
const result = await users.createSHAUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', passwordVersion: PasswordHash.Sha1, // optional name: '' // optional });
console.log(result);