Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

multipassify-ts

sjcobb2022777ISC0.0.1TypeScript support: included

This is an example TypeScript Package ready to be published on npm. It has been set up with automated tests and package publishing workflow using GitHub Actions CI/CD. It is made primarily for GitHub + VS Code (Windows / Mac / Linux) users who are about t

shopify, Shopify, multipass, typescript, tsc, esm, cjs, umd, npm, package

readme

Multipassify

// define or import multipass token from .env
const SHOPIFY_MULTIPASS_TOKEN = '6fee2f4f64e3c4b35610786df324fdbc';

const customerData = {
  email: 'test@example.com',
  remote_ip: 'USERS IP ADDRESS',
  return_to: 'http://some.url'
};

const multipassify = new Multipassify(SHOPIFY_MULTIPASS_TOKEN);

const token = multipassify.encode(customerData)

const url = multipassify.getUrl(customerData, 'yourstore.myshopify.com')

Typescript bindings for using Shopify's multipass authentication system.

Basic test suite included.

Follow the the instructions here to obtain multipass access. Please note that you need ShopifyPlus to access this feature.