I am building an ecommerce website using strapi, apollo, graphql, nextjs, when an authenticated users ordering they need to send jwt token using headers but I am little confused how to do that. Here is my code on apollographql playground.
mutation Mutation($data: OrderInput!) {
createOrder(data: $data) {
data {
id
attributes {
name
phone
products {
data {
id
attributes {
price
name
media {
data {
attributes {
url
}
}
}
}
}
}
status
details
createdAt
user {
data {
attributes {
username
}
}
}
}
}
}
}

When I do that it is giving following error.
{
"errors": [ { "message": "Forbidden access", "extensions": { "error": { "name": "ForbiddenError", "message": "Forbidden access", "details": {} }, "code": "FORBIDDEN" } }, { "message": "Forbidden access", "extensions": { "error": { "name": "ForbiddenError", "message": "Forbidden access", "details": {} }, "code": "FORBIDDEN" } } ],
Without authorisation its working fine, but I do not know how to insert jwt token

