Hi to everyone
Currently i am working on Adobe Commerce GraphQL API, Does it has any authentication? Using No Auth i am able to get data from Postman.
Yes, it has Authorization.
You may refer GraphQL authorization for more details.
Thanks
But i am Getting the response without having any Authentication. Or Invalid Bearer Token from Postman, Is there any way to stop getting the response, from Adobe Commerce Web API, If User doesn't provide any authentication.
But for Specific Customer Details i need to Provide Customer token, How can i fetch customer data using Admin token?
Thanks.
To generate the customer token you require to use generateCustomerToken
mutation { generateCustomerToken(email: "customer@example.com", password: "password") { token } }
Output
{ "data": { "generateCustomerToken": { "token": "hoyz7k697ubv5hcpq92yrtx39i7x10um" } } }
If you update your question with the code you have used, you may get better responses from community members.
Refer : https://developer.adobe.com/commerce/webapi/graphql/usage/authorization-tokens/