@salesforce/b2c-tooling-sdk / slas / getRegisteredToken
Function: getRegisteredToken()
getRegisteredToken(
config):Promise<SlasTokenResponse>
Defined in: packages/b2c-tooling-sdk/src/slas/token.ts:215
Retrieves a registered customer access token from SLAS.
Uses the /oauth2/login endpoint with shopper credentials, then exchanges the authorization code for an access token.
- Public client: Uses PKCE for code exchange.
- Private client: Uses client credentials (Basic auth) for code exchange.
Parameters
config
SLAS token configuration including shopper credentials
Returns
Promise<SlasTokenResponse>
The token response including access_token and refresh_token