saleor: handle customer find via refresh

temporary solution
This commit is contained in:
Zaiste 2021-05-11 14:28:34 +02:00
parent 3873b48c59
commit 8e29a0b010
No known key found for this signature in database
GPG Key ID: 15DF7EBC7F2FFE35

View File

@ -1,15 +1,19 @@
// FIXME move to `mutations/` @zaiste
export const getCustomerQuery = /* GraphQL */ `
query getCustomer($customerAccessToken: String!) {
customer(customerAccessToken: $customerAccessToken) {
id
firstName
lastName
displayName
email
phone
tags
acceptsMarketing
createdAt
mutation getCustomer($customerAccessToken: String!) {
tokenRefresh(csrfToken: $customerAccessToken) {
token
user {
id
email
firstName
lastName
dateJoined
}
errors {
code
message
}
}
}
`