Shopify / koa-shopify-auth

DEPRECATED Middleware to authenticate a Koa application with Shopify
MIT License
80 stars 64 forks source link

Update API library version, and use context user agent in `initializeShopify` #51

Closed thecodepixi closed 3 years ago

thecodepixi commented 3 years ago

WHY are these changes introduced?

The new USER_AGENT_PREFIX option on Shopify.Context will allow us to add to the User-Agent header and track calls coming specifically from koa-shopify-auth as opposed to coming straight from the new library itself.

WHAT is this pull request doing?

Updates the initializeShopify method to use the Context.USER_AGENT_PREFIX. It will reference anything currently set as the prefix so that we are adding to, but not overriding, anything someone might also pass in using that setting.

Type of change

Checklist