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 */ ` export const getCustomerQuery = /* GraphQL */ `
query getCustomer($customerAccessToken: String!) { mutation getCustomer($customerAccessToken: String!) {
customer(customerAccessToken: $customerAccessToken) { tokenRefresh(csrfToken: $customerAccessToken) {
token
user {
id id
email
firstName firstName
lastName lastName
displayName dateJoined
email }
phone errors {
tags code
acceptsMarketing message
createdAt }
} }
} }
` `