Skip to content

Commit 465b813

Browse files
committed
Reapply "Enable SLAS private client and passwordless login email mode, update Commerce API parameters to test with staging-001"
This reverts commit 66bcafa.
1 parent cb345aa commit 465b813

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/template-retail-react-app/app/components/_app-config/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const AppConfig = ({children, locals = {}}) => {
105105
defaultDnt={DEFAULT_DNT_STATE}
106106
// Set 'enablePWAKitPrivateClient' to true to use SLAS private client login flows.
107107
// Make sure to also enable useSLASPrivateClient in ssr.js when enabling this setting.
108-
enablePWAKitPrivateClient={false}
108+
enablePWAKitPrivateClient={true}
109109
privateClientProxyEndpoint={slasPrivateClientProxyEndpoint}
110110
// Uncomment 'hybridAuthEnabled' if the current site has Hybrid Auth enabled. Do NOT set this flag for hybrid storefronts using Plugin SLAS.
111111
// hybridAuthEnabled={true}

packages/template-retail-react-app/app/ssr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const options = {
5151
// Set this to false if using a SLAS public client
5252
// When setting this to true, make sure to also set the PWA_KIT_SLAS_CLIENT_SECRET
5353
// environment variable as this endpoint will return HTTP 501 if it is not set
54-
useSLASPrivateClient: false,
54+
useSLASPrivateClient: true,
5555

5656
// If you wish to use additional SLAS endpoints that require private clients,
5757
// customize this regex to include the additional endpoints the custom SLAS

packages/template-retail-react-app/config/default.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
},
3232
login: {
3333
passwordless: {
34-
enabled: false,
34+
enabled: true,
3535
mode: 'email',
3636
landingPath: '/passwordless-login-landing'
3737
},
@@ -54,9 +54,10 @@ module.exports = {
5454
commerceAPI: {
5555
proxyPath: `/mobify/proxy/api`,
5656
parameters: {
57-
clientId: 'c9c45bfd-0ed3-4aa2-9971-40f88962b836',
57+
clientId: 'bb1e8c16-7767-4ed8-bc5d-83efc59a208a',
58+
// secret: FctBOLiYAMFFJVu4NiuxYYON6pTIcXjsf_4Wtj7zd80
5859
organizationId: 'f_ecom_zzrf_001',
59-
shortCode: '8o7m175y',
60+
shortCode: 'staging-001',
6061
siteId: 'RefArchGlobal'
6162
}
6263
},

0 commit comments

Comments
 (0)