I’m using the GraphQL node with OAuth2 API credentials but when the token is expired I have to create a new set of credentials in order to have the node working again. Is there any way OAuth token get’s automagically refreshed if it’s expired?
What is the error message (if any)?
[
{
“extensions”: {
“code”: “UNAUTHENTICATED”
},
“message”: “Invalid OAuth token”
}
]
Please share your workflow
Workflow only consists of GraphQL node and a manual trigger. Credentials are added to N8N credentials store.
NodeApiError: Invalid OAuth token
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/GraphQL/GraphQL.node.js:463:27)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:670:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:652:53
Information on your n8n setup
I’m usaing N8N Cloud v1.15.2
After creating a new credential in the credential store in N8N this action works, after an hour when the token is expired it stops working and only creating a new credential fixes the issue, this isn’t acceptable for me, does anyone have a solution for this?