@shopify/shopify-app-session-storage-memory
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

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.

Package Sidebar

Install

npm i @shopify/shopify-app-session-storage-memory

Weekly Downloads

9,430

Version

3.0.4

License

MIT

Unpacked Size

67.4 kB

Total Files

10

Last publish

Collaborators

  • jaimie.rockburn
  • blittle
  • shopify-admin
  • maryharte
  • crisfmb
  • pmoloney89
  • netlohan
  • st999999
  • justin-irl
  • megswim
  • wcandillon
  • nathanpjf
  • shopify-dep
  • goodforonefare
  • lemonmade
  • vsumner
  • wizardlyhel
  • antoine.grant
  • tsov
  • andyw8-shopify
  • henrytao
  • hannachen
  • vividviolet
  • bpscott