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 (e.g. created via magic link/social), the password is attached pending email confirmation and no session is returned (throws CONFLICT). Public.
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.