Customer Login (SSO)

Enable single sign-on for shoppers on BigCommerce hosted storefronts.

Learn more about the customer login API.

For info about API accounts, see our Guide to API Accounts.

For info about authenticating BigCommerce APIs, see Authentication and Example Requests.

Login Token

GET /login/token/{jwt_token}

Request

The customer login access point URL.

Learn more about the Customer Login API.

Example

https://yourstore.example.com/login/token/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ7Y2xpZW50X2lkfSIsImlhdCI6MTUzNTM5MzExMywianRpIjoie3V1aWR9Iiwib3BlcmF0aW9uIjoiY3VzdG9tZXJfbG9naW4iLCJzdG9yZV9oYXNoIjoie3N0b3JlX2hhc2h9IiwiY3VzdG9tZXJfaWQiOjJ9.J-fAtbjRFGdLsT744DhoprFEDqIfVq72HbDzrbFy6Is

Parameters

  • store_domain in path - string
  • jwt_token in path - string
    required

example

const options = {method: 'GET', headers: {'Content-Type': 'application/json'}};

fetch('https://yourstore.example.com/login/token/[jwt_token]', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));

Response

OK

See something you can improve? Edit this file on GitHub

Did you find what you were looking for?