By following this guide, you will have a fully functional Shopify app. However, there are some things you should be aware of before using your new app in a production environment.
Before you start writing your application, please note that the Shopify library stores some information for OAuth in sessions. Since each application may choose a different strategy to store information, the library cannot dictate any specific storage strategy. By default, Shopify.Context
is initialized with MemorySessionStorage
, which will enable you to start developing your app by storing sessions in memory. You can quickly get your app set up using it, but please keep the following in mind.
MemorySessionStorage
is purposely designed to be a single-process, development-only solution. It will leak memory in most cases and delete all sessions when your app restarts. You should never use it in production apps. In order to use a CustomSessionStorage
solution in your production app, you can reference our usage example with redis to get started.