Users
Profile endpoints and username helpers
Users
Common user endpoints and helpers.
await ea.getUserMe();
await ea.userByUsername({ username: "alice" });
await ea.userByEmail({ email: "alice@example.com" });
await ea.setUsername({ username: "alice" });
await ea.checkUsername({ value: "alice" }); // { valid, available }
_ = try await EntityAuth.shared.getUserMe()
_ = try await EntityAuth.shared.userByUsername("alice")
_ = try await EntityAuth.shared.userByEmail("alice@example.com")
try await EntityAuth.shared.setUsername("alice")
let ok = try await EntityAuth.shared.checkUsernameAvailability("alice")
Validation rules: lowercase letters, digits, .
_
-
, 3–30 chars.