mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51: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 */ `
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
Loading…
x
Reference in New Issue
Block a user