Skip to main content

register

Registers a new email + password account: creates the (initially unconfirmed) account, emails a confirmation link, and returns an AuthResponse with a session token for immediate use (send as Authorization: Bearer <token>). If an account already exists for the email it is refused with extensions.code EMAIL_ALREADY_REGISTERED (409) and no session is returned: an account that already has a password is left exactly as it was (sign in, or use the emailed reset), and only a password-less account (created via magic link/social) gets the password attached pending email confirmation. It is a routine outcome rather than a fault, and it reached clients as INTERNAL_SERVER_ERROR before v1.60.0, which is why several of them match it by its message text. Public; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise); rate-limited.

register(
registerUserInput: RegisterUserInput!
): AuthResponse!

Arguments

register.registerUserInput ● RegisterUserInput! non-null input

Wraps the new-account credentials (email, password, optional gamertag). (Argument name is non-standard but required.)

Type

AuthResponse object

Result of a successful login or registration: a session token plus the authenticated user.