shopify-arq-multipass
v2.0.0
Published
Shopify Multipass URL generator for (Hydrogen Storefront User's) checkout.
Maintainers
Readme
Shopify Multipass URL
This package generate the multipass url (specifically for hydrogen storefront) to authenticate the user for checkout through shopify default checkout.
Install
npm install shopify-arq-multipassUsage
import multipassify from "shopify-arq-multipass";
const multipass = multipassify(env.MULTIPASS_SECRET);
const url = await multipass.generateUrl({ email: customerEmail, return_to: checkoutURL, }, env.PUBLIC_CHECKOUT_DOMAIN);
throw redirect(url as string);