Hi,
I’m using remix-run template and I have a worker that needs to access to Shopify API.
The first time I download the app there is no problem when worker run.
But the second time when I re-install the app I got a 401 error:
{
“networkStatusCode”: 401,
“message”: “GraphQL Client: Unauthorized”,
“response”: {}
}
To execute the gql query i’m doing:
const{ admin } =await unauthenticated.admin(shop);
And then:
await admin.graphql(
Don’t know if it is important but i’m not deleting the session when i receive the uninstall webhook.
Do you know where does it come from ?