express-shopify-auth
Provides middleware for express applications to authenticate shops with Shopify.
Shop can be dynamically set during the authentication request - check out the example below.
Install
npm install express-shopify-auth
Examples
Authenticate shops and save to session.
Run and visit http://localhost:8000/auth?shop=YourShopName.myshopify.com
var express = ;var session = ;var ShopifyAuth = ; var auth = ShopifyAuth; var app = ; app; app; app; app; app;
API
TODO
Development
Running tests
mocha is used for testing.
Start by creating a file options.json
in tests/
that looks like:
Run npm test
. Your default browser should open a few tabs to run the tests using the provided dev shop.