Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@slashid/shopify-sdk

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slashid/shopify-sdk

Shopify SDK allows you to seamlessly authenticate your customers to Shopify with SlashID. This is done by exchanging a SlashID user token for a Shopify Multipass token.

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
9
Weekly downloads
 
Created
Source

SlashID Shopify SDK

Shopify SDK allows you to seamlessly authenticate your customers to Shopify with SlashID. This is done by exchanging a SlashID user token for a Shopify Multipass token.

Read the docs

Installation

npm install @slashid/shopify-sdk

Setup

  1. Create a SlashID account
  2. Follow the integration guide on the SlashID developer portal
  3. Make sure you have the following information:
    • storeURL - the URL of your Shopify store
    • externalCredentialsId - the ID of the external credentials you created in the SlashID developer portal
    • slashIdToken - the token you get by logging in with SlashID

Usage

import { ShopifySDK } from "@slashid/shopify-sdk";

const storeURL = "https://mystore.myshopify.com";
const slashIdToken = "<get the token by logging in with SlashID>";
const externalCredentialsId = "<store Shopify secrets safely with SlashID>";

let shopifySDK = new ShopifySDK({ storeURL });

// get a customer access token to use with the Shopify Storefront API
let customerAccessToken = await shopifySDK.getCustomerAccessToken(
  slashIdToken,
  externalCredentialsId
);

// navigate to the Shopify store without having to login again
let multipassToken = await shopifySDK.getMultipassToken(
  slashIdToken,
  externalCredentialsId
);
shopifySDK.redirectToShopify(multipassToken);

FAQs

Package last updated on 25 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc