New Shopify Certification now available: Liquid Storefronts for Theme Developers

Fetch existing Storefront Access token via GraphQL

frodrigues
Shopify Partner
7 0 3

Hello,

It seems that there is no query to fetch existing storefront access tokens via the GraphQL Storefront API.

Only the REST Documentation refers this: https://shopify.dev/api/admin-rest/2022-07/resources/storefrontaccesstoken 

How does one fetch the existing tokens via GraphQL?
I can only find create or delete (https://shopify.dev/api/admin-graphql/2022-07/mutations/storefrontAccessTokenCreate https://shopify.dev/api/admin-graphql/2022-07/mutations/storefrontAccessTokenDelete)

Reply 1 (1)
dev-anon-8765
Shopify Partner
1 0 0
const query = `
query {
    shop {
        storefrontAccessTokens(first: 100) {
           nodes {
                accessToken
                id
            }
        }
    }
}
`