commerce/framework/saleor/utils/mutations/customer-access-token-create.ts
2021-06-09 17:02:11 +02:00

16 lines
321 B
TypeScript

const tokenCreateMutation = /* GraphQL */ `
mutation tokenCreate($email: String!, $password: String!) {
tokenCreate(email: $email, password: $password) {
token
refreshToken
csrfToken
errors {
code
field
message
}
}
}
`
export default tokenCreateMutation;