mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
saleor: handle customer find via refresh
temporary solution
This commit is contained in:
parent
3873b48c59
commit
8e29a0b010
@ -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
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user