login Mutation
Description
Authenticates a user with email and password.
mutation login($email: String!, $password: String!, $checkoutId: String) {
login(email: $email, password: $password, checkoutId: $checkoutId) {
session {
_id
jwt
expires
}
sessionsCount
checkout {
_id
id
configRef
origin
created
orderId
updated
expires
status
message
useSingleAddress
}
}
}
Variables
{
"email": "email@example.com",
"password": "password",
"checkoutId": "checkoutId"
}
Response
{
"login": {
"session": {
"_id": "4484d7c84104228fbc546617",
"jwt": "example",
"expires": 1742204773177
},
"sessionsCount": 42,
"checkout": {
"_id": "f293ab91c71943fff16d0d7d",
"id": "EKa-upU3K",
"configRef": "365de300178014ae555b0f03",
"origin": "example",
"created": 1730310949378,
"orderId": "example",
"updated": 1748027275999,
"expires": 1741321675570,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
email | String! | User's email address. |
password | String! | User's password. |
checkoutId | String | Optional checkout identifier to associate with the session. |