const { users, databases } = await createAdminClient();
const session = await getLoggedInUser();
const user = await users.get(session.$id);
if (!user) {
throw new Error("User not found");
}
await users.updateEmail(user.$id, email);
await users.updateName(user.$id, first_name + " " + last_name);
if (phone) {
await users.updatePhone(user.$id, phone);
}