File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
pwa-kit-create-app/assets
templates/@salesforce/retail-react-app/config
template-retail-react-app/config Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ module.exports = {
5858 },
5959 login: {
6060 // The length of the token for OTP authentication. Used by passwordless login and reset password.
61- // Valid values include 6 or 8. Defaults to: 8
62- tokenLength: 8,
61+ // If the env var `OTP_TOKEN_LENGTH` is set, it will override the config value. Valid values include 6 or 8. Defaults to: 8
62+ tokenLength: process.env.OTP_TOKEN_LENGTH || 8,
6363 passwordless: {
6464 // Enables or disables passwordless login for the site. Defaults to: false
6565 {{ #if answers.project.demo.enableDemoSettings }}
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ module.exports = {
5858 },
5959 login: {
6060 // The length of the token for OTP authentication. Used by passwordless login and reset password.
61- // Valid values include 6 or 8. Defaults to: 8
62- tokenLength: 8,
61+ // If the env var `OTP_TOKEN_LENGTH` is set, it will override the config value. Valid values include 6 or 8. Defaults to: 8
62+ tokenLength: process.env.OTP_TOKEN_LENGTH || 8,
6363 passwordless: {
6464 // Enables or disables passwordless login for the site. Defaults to: false
6565 {{ #if answers.project.demo.enableDemoSettings }}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module.exports = {
3030 interpretPlusSignAsSpace : false
3131 } ,
3232 login : {
33- tokenLength : 8 ,
33+ tokenLength : process . env . OTP_TOKEN_LENGTH || 8 ,
3434 passwordless : {
3535 enabled : false ,
3636 mode : 'email' ,
You can’t perform that action at this time.
0 commit comments