Authentication / 03
Sign up and verify email
Create an identity, complete the challenge, then sign in.
1. Collect registration details
Collect username, email and password. Validate input locally for usability; server validation is authoritative. Disable the button while submitting. Registration does not log the user in.
typescript
const registration = await auth.human.register({ username, email, password });
// registration.challengeId; registration.emailVerificationRequired2. Verify the challenge
Open an email verification screen. Accept the challenge ID and OTP or link proof delivered by Central Auth. Treat all link input as untrusted; do not log or persist proof values.
typescript
await auth.human.verifyRegistration({
challengeId: registration.challengeId,
method: "otp",
value: otp,
});
// verified: true → login screen3. Resend or recover
Resend using the email. The response is accepted:true, not a new challenge ID. Use the newest challenge ID from the delivered message. Respect rate limits.
typescript
await auth.human.resendRegistration(email);Mobile deep-link continuation remains an integration task; pasted challenge links are currently supported by HOL Mobile. Do not implement a verification bypass.