mirror of
https://github.com/vercel/commerce.git
synced 2025-07-13 16:01:21 +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>
42 lines
964 B
TypeScript
42 lines
964 B
TypeScript
|
|
const registerUserMutation = /* GraphQL */`
|
|
mutation registerUser($customerAccountInput: CustomerAccountInput!) {
|
|
account:createCustomerAccount(customerAccountInput:$customerAccountInput) {
|
|
emailAddress
|
|
userName
|
|
firstName
|
|
lastName
|
|
localeCode
|
|
userId
|
|
id
|
|
isAnonymous
|
|
attributes {
|
|
values
|
|
fullyQualifiedName
|
|
}
|
|
}
|
|
}`;
|
|
|
|
const registerUserLoginMutation = /* GraphQL */`
|
|
mutation registerUserLogin($accountId: Int!, $customerLoginInfoInput: CustomerLoginInfoInput!) {
|
|
account:createCustomerAccountLogin(accountId:$accountId, customerLoginInfoInput:$customerLoginInfoInput) {
|
|
accessToken
|
|
accessTokenExpiration
|
|
refreshToken
|
|
refreshTokenExpiration
|
|
userId
|
|
customerAccount {
|
|
id
|
|
emailAddress
|
|
firstName
|
|
userName
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export {
|
|
registerUserMutation,
|
|
registerUserLoginMutation
|
|
};
|
|
|