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": "6b21b026fe7471216c07d07a",
"jwt": "example",
"expires": 1713565658536
},
"sessionsCount": 42,
"checkout": {
"_id": "da8c60d8c5622c112fe2d3e5",
"id": "ORX-ECVvT",
"configRef": "1b47170cb5ddcd59f4fb3c15",
"origin": "example",
"created": 1715002190359,
"orderId": "example",
"updated": 1710327298482,
"expires": 1751194424606,
"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. |