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

1.0.10 • Public • Published

Session Storage Adapter for AWS DynamoDB

This package implements the SessionStorage interface that works with an AWS DynamoDB database.

Contributed by Chris - thank you 👏

import {shopifyApp} from '@shopify/shopify-app-express';
import {DynamoDBSessionStorage} from '@shopify/shopify-app-session-storage-dynamodb';

// You can use the default options
const storage = new DynamoDBSessionStorage();

// or, if you want to use a different session table name and shop index name
const storage = new DynamoDBSessionStorage({ sessionTableName: 'my-session-table', shopIndexName: 'my-shop-index' });

// or, if you want to use a different region or credentials
const storage = new DynamoDBSessionStorage({ config: { region: 'us-west-2', credentials: { ... } } });

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

If you prefer to use your own implementation of a session storage mechanism that uses the SessionStorage interface, see the implementing session storage guide.

Package Sidebar

Install

npm i @humm-dev/shopify-app-session-storage-dynamodb

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

14.8 kB

Total Files

7

Last publish

Collaborators

  • humm-dev