JSPM

  • Created
  • Published
  • Downloads 16655
  • Score
    100M100P100Q158530F
  • License MIT

Shopify App Session Storage for Memory

Package Exports

  • @shopify/shopify-app-session-storage-memory
  • @shopify/shopify-app-session-storage-memory/dist/cjs/memory.js
  • @shopify/shopify-app-session-storage-memory/dist/esm/memory.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@shopify/shopify-app-session-storage-memory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

In-Memory Session Storage

This package implements the SessionStorage interface to work with an in-memory storage table.

import {shopifyApp} from '@shopify/shopify-app-express';
import {MemorySessionStorage} from '@shopify/shopify-app-session-storage-memory';

const shopify = shopifyApp({
  sessionStorage: new MemorySessionStorage(),
  // ...
});

Note: ⚠️ This session storage model is for local development only, to make it easier for developers to get started. It will delete all sessions if the app process gets restarted or redeployed, and is not meant for production use. For persistent storage, use one of the other options (see relevant section above for instructions).

If you prefer to use your own implementation of a session storage mechanism that is compatible with the @shopify/shopify-app-express package, see the implementing session storage guide.