Set Up SSO Commerce for SFRA


  • You have upgraded to the latest plugin version
  • You have requested from Salesforce that SetCustomer be enabled for your SFRA storefront
  • You have contacted Bolt to request SSO Commerce and begin shopper account migrations

How to Set Up SSO Buttons and Scripts

1. Replace all Log in and Track My Order buttons

  1. Navigate to your storefrontโ€™s theme files.
  2. Make a copy the active theme.
  3. Replace all login buttons with the Bolt SSO button using the following:
<div class="bolt-account-sso navUser-action" data-logged-in="false" style="justify-content: center;">&nbsp;</div>

2. Customize Button Styling

Use the following styles to override the buttonโ€™s font and icon color:

    --bolt-account-sso-color: #fff;
    --bolt-account-sso-font: 'Verdana';
    --bolt-account-sso-font-size: 16px;
    --bolt-account-sso-font-weight: 700;

You can also add classes to the bolt-account-sso div as necessary to customize the style further.

Do not replace icon-only buttons. Instead, add class=โ€bolt-sso-custom" data-logged-in="true/false". This enables the icon button to trigger Bolt SSO instead of redirecting to the platform login page.

3. Install Required Scripts

Ensure the following account script is loaded whenever the button is created, using one of the following script URLs for {{bolt-script-url}}:

  • Sandbox:
  • Production:
<script id="bolt-account" type="text/javascript" src="{{bolt-script-url}}" data-publishable-key=$KEY></script>

4. Define Redirects (Optional)

You can specify where a link or button redirects to after successful login, using the following html attribute: data-destination-on-success=โ€{{urls.accounts.example.all}}โ€

For example, you can redirect to a wishlist when a non-logged in user selects a wishlist link. This would present the SSO Commerce modal for authentication before redirecting the shopper to their wishlist page.


5. Contact Bolt

Once you have completed setup, contact Bolt so that our team can:

  • Re-run necessary account migrations steps to capture any newly added accounts.
  • Enable all imported accounts.


Bolt recommends setting up a sandbox environment first before making any changes in production. Preview mode does not work for testing Bolt SSO Commerce.

  1. Test the Login/Register button. This action should populate the SSO Modal. Try going all the way through the login flow with your own Bolt account.
  2. Test any Icons or Elements with the id=โ€bolt-sso-customโ€ attribute. This action should populate the SSO modal.

How did we do?

๐Ÿ“–On This Page