Shopify / koa-shopify-auth

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

Set the user agent for the Shopify library #55

Closed paulomarg closed 3 years ago

paulomarg commented 3 years ago

WHY are these changes introduced?

The new library allows us to set a specific user agent for calls made using this package, which allows us to tell requests apart from 'pure' library ones.

WHAT is this pull request doing?

It creates a function that makes sure the user agent is set. This function can be called multiple times without messing up the agent, so we are able to call it in multiple entrypoints to this package.

Type of change

Checklist