mirror of
https://github.com/vercel/commerce.git
synced 2025-07-14 16:31:22 +00:00
* Update README.md * Initial Commit * Commited Keys * GraphQL Changes * GraphQL Query * Final Changes * Changed login.ts * Made changes in login.ts * Final Changes * Refactored login.ts * SignUp Initial Checkin * logout Initial * Customer Account Initial Commit * Logout - deleted cookie * Reverted ReadMe and UserNav file * Final Changes * Resolved comments * Resolved comments 1 * Resolved comments 2 * Resolved comments 3 * Resolved comments 4 Co-authored-by: SushantJadhav <Sushant.Jadhav@kibocommerce.com>
21 lines
416 B
TypeScript
21 lines
416 B
TypeScript
|
|
export const loginMutation = /* GraphQL */`
|
|
mutation login($loginInput:CustomerUserAuthInfoInput!) {
|
|
account:createCustomerAuthTicket(customerUserAuthInfoInput:$loginInput) {
|
|
accessToken
|
|
userId
|
|
refreshToken
|
|
refreshTokenExpiration
|
|
accessTokenExpiration
|
|
customerAccount {
|
|
id
|
|
firstName
|
|
lastName
|
|
emailAddress
|
|
userName
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|