login
Authenticates with email + password and starts a new session. Returns an AuthResponse whose token must be sent on subsequent requests as Authorization: Bearer <token>. Public (no auth required); throws on invalid credentials. If the account also has another verified sign-in method, the password must first be email-confirmed.
login(
loginUserInput: LoginUserInput!
): AuthResponse!
Arguments
login.loginUserInput ● LoginUserInput! non-null input
Wraps the login credentials (email + password). (Argument name is non-standard but required.)
Type
AuthResponse object
Result of a successful login or registration: a session token plus the authenticated user.