Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.06k stars 473 forks source link

Support using the Storefront private access token #1302

Closed bfad closed 7 months ago

bfad commented 7 months ago

Description

This allows for using the Storefront private access token with the library's Storefront GraphQL client. Since this client is probably going to be running on a server where the token can be secured, using the private access token should be preferred. This commit doesn't make using the private token the default to avoid an immediate breaking change. We want to give clients time to see the deprecation and update their scripts.

Closes #1293

How has this been tested?

I created automated tests, and I tested it from the console against my own shop.

Checklist: