Skip to content

Commit 0c88eca

Browse files
committed
Merge branch 'W-20328381-webauthn-api-commerce-react' of github.com:SalesforceCommerceCloud/pwa-kit into W-20328381-webauthn-api-commerce-react
2 parents d9a248d + 201fd89 commit 0c88eca

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

packages/pwa-kit-create-app/assets/bootstrap/js/config/default.js.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ module.exports = {
9393
callbackURI: process.env.RESET_PASSWORD_CALLBACK_URI || '/reset-password-callback',
9494
// The landing path for reset password
9595
landingPath: '/reset-password-landing'
96+
},
97+
passkey: {
98+
// Enables or disables passkey login for the site. Defaults to: false
99+
{{#if answers.project.demo.enableDemoSettings}}
100+
enabled: true,
101+
{{else}}
102+
enabled: false,
103+
{{/if}}
104+
// The callback URI must be an absolute URL (i.e. third-party URI) set up by the developer.
105+
callbackURI: process.env.PASSKEY_CALLBACK_URI
96106
}
97107
},
98108
// The default site for your app. This value will be used when a siteRef could not be determined from the url

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/config/default.js.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ module.exports = {
9393
callbackURI: process.env.RESET_PASSWORD_CALLBACK_URI || '/reset-password-callback',
9494
// The landing path for reset password
9595
landingPath: '/reset-password-landing'
96+
},
97+
passkey: {
98+
// Enables or disables passkey login for the site. Defaults to: false
99+
{{#if answers.project.demo.enableDemoSettings}}
100+
enabled: true,
101+
{{else}}
102+
enabled: false,
103+
{{/if}}
104+
// The callback URI must be an absolute URL (i.e. third-party URI) set up by the developer.
105+
callbackURI: process.env.PASSKEY_CALLBACK_URI
96106
}
97107
},
98108
// The default site for your app. This value will be used when a siteRef could not be determined from the url

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ module.exports = {
4444
resetPassword: {
4545
callbackURI: process.env.RESET_PASSWORD_CALLBACK_URI || '/reset-password-callback',
4646
landingPath: '/reset-password-landing'
47+
},
48+
passkey: {
49+
enabled: false,
50+
callbackURI: process.env.PASSKEY_CALLBACK_URI
4751
}
4852
},
4953
defaultSite: 'RefArchGlobal',

0 commit comments

Comments
 (0)