# GraphQL Node + Shopify Credentials

**URL:** <https://community.n8n.io/t/graphql-node-shopify-credentials/257126>\
**Category:** Questions\
**Tags:** shopify, oauth2, graphql\
**Created:** [January 28, 2026, 2:43pm UTC](https://community.n8n.io/t/graphql-node-shopify-credentials/257126 "2026-01-28T14:43:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe73k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/joe73k/32/155421_2.png) [@joe73k](https://community.n8n.io/u/joe73k)\
**Post date:** [January 28, 2026, 2:43pm UTC](https://community.n8n.io/t/graphql-node-shopify-credentials/257126/1 "2026-01-28T14:43:32Z")

</div>

## Describe the problem/error/question

At the moment I can’t use the GraphQL node to connect to Shopify as I keep getting an error about a refreshToken being required. When I use a HTTPRequest node I can select a “predefined credential” and then choose my Shopify one. I can then execute a GraphQL query without getting this error.

Is it possible to have the predefined credentials option available in GraphQL as the interface for entering the actual query and variables is much easier to use.

## What is the error message (if any)?

```auto
AssertionError [ERR_ASSERTION]: refreshToken is required at ClientOAuth2Token.refresh

```

## Please share your workflow

```auto

```

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version: n8n Cloud**
- **Running n8n via n8n cloud**

---

<div class="post-metadata">

**Author:** ![tamy.santos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tamy.santos/32/153776_2.png) [@tamy.santos](https://community.n8n.io/u/tamy.santos)\
**Post date:** [January 28, 2026, 3:01pm UTC](https://community.n8n.io/t/graphql-node-shopify-credentials/257126/2 "2026-01-28T15:01:09Z")

</div>

Hi @joe73k !

There isn’t a single piece of documentation that explicitly states that the GraphQL node does not support predefined OAuth2 credentials, but this behavior is implied in the docs.

Predefined OAuth2 credentials (like Shopify) are documented and supported in the **HTTP Request node** , which handles access and refresh tokens automatically. The **GraphQL node documentation does not mention this capability** , as it expects authentication to be handled manually within the node itself (for example via headers or a manually configured OAuth flow).

That’s why the same Shopify credentials work in the HTTP Request node but fail in the GraphQL node with a `refreshToken is required` error. Supporting predefined credentials in the GraphQL node would require a feature enhancement rather than a configuration change.

[https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httpRequest/](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httpRequest/)

> **[GraphQL | n8n Docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.graphql/)**
>
> Documentation for the GraphQL node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [April 28, 2026, 3:01pm UTC](https://community.n8n.io/t/graphql-node-shopify-credentials/257126/3 "2026-04-28T15:01:38Z")

</div>

Closed on April 28, 2026, 3:01pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
