Closed johnboxall closed 6 months ago
Under the covers, helpers.getShopperToken() is powered by the deprecated SCAPI /actions/login method.
helpers.getShopperToken()
/actions/login
The method is generally unavailable and will be disabled for the majority of customers on March 31, 2023.
Customers should instead use the SLAS helpers introduced in #356:
To reduce confusion, we should remove the method!
While we're at it, we should also update the examples in the README to focus on the private helpers, which the vast majority of folks using this SDK should use: https://github.com/SalesforceCommerceCloud/commerce-sdk#sample-code
For folks looking to transition to SLAS, big picture you'll need to:
commerce-sdk
helpers.loginGuestUserPrivate
helpers.loginRegisteredUserB2Cprivate
helpers.getShopperToken
To help familiarize yourself with SLAS and its concepts, checkout these docs:
A few more notes for your implementation:
This issue has been linked to a new work item: W-12733508
getShopperToken has been removed with the latest release, v3.0.0: https://github.com/SalesforceCommerceCloud/commerce-sdk/releases/tag/v3.0.0
getShopperToken
v3.0.0
Under the covers,
helpers.getShopperToken()
is powered by the deprecated SCAPI/actions/login
method.The method is generally unavailable and will be disabled for the majority of customers on March 31, 2023.
Customers should instead use the SLAS helpers introduced in #356:
To reduce confusion, we should remove the method!
While we're at it, we should also update the examples in the README to focus on the private helpers, which the vast majority of folks using this SDK should use: https://github.com/SalesforceCommerceCloud/commerce-sdk#sample-code
For folks looking to transition to SLAS, big picture you'll need to:
commerce-sdk
SLAS helper methodshelpers.loginGuestUserPrivate
andhelpers.loginRegisteredUserB2Cprivate
instead ofhelpers.getShopperToken
.To help familiarize yourself with SLAS and its concepts, checkout these docs:
A few more notes for your implementation: