Skip to content

@salesforce/b2c-tooling-sdk / slas / getGuestToken

Function: getGuestToken() ​

getGuestToken(config): Promise<SlasTokenResponse>

Defined in: packages/b2c-tooling-sdk/src/slas/token.ts:103

Retrieves a guest shopper access token from SLAS.

  • Private client (slasClientSecret set): Uses client_credentials grant.
  • Public client (no secret): Uses PKCE authorization code flow with hint=guest.

Parameters ​

config ​

SlasTokenConfig

SLAS token configuration

Returns ​

Promise<SlasTokenResponse>

The token response including access_token and refresh_token

Released under the Apache-2.0 License.