Hi,
is it possible to create a customerAccessToken and also query customer information in one GraphQL call?
Something like this, but with “autofilled” ACCESS_TOKEN_HERE ?
mutation {
customerAccessTokenCreate(input: {
email: "customer@example.com"
password: "password123"
}) {
customerAccessToken {
accessToken
}
customerUserErrors {
field
message
}
}
}
query {
customer(customerAccessToken: "ACCESS_TOKEN_HERE") {
firstName
}
}