Skip to content

Commit

Permalink
Fix Modal SMS Whitelabel
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Aug 21, 2024
1 parent a57eca4 commit ff8a8a7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/modal/src/modalManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,20 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
label: WALLET_ADAPTERS.OPENLOGIN,
loginMethods: {
[LOGIN_PROVIDER.SMS_PASSWORDLESS]: {
name: LOGIN_PROVIDER.SMS_PASSWORDLESS,
showOnModal: smsOtpEnabled,
showOnDesktop: smsOtpEnabled,
showOnMobile: smsOtpEnabled,
name:
params?.modalConfig[WALLET_ADAPTERS.OPENLOGIN].loginMethods[LOGIN_PROVIDER.SMS_PASSWORDLESS].name || LOGIN_PROVIDER.SMS_PASSWORDLESS,
showOnModal:
params?.modalConfig[WALLET_ADAPTERS.OPENLOGIN].loginMethods[LOGIN_PROVIDER.SMS_PASSWORDLESS].showOnModal === false
? false
: smsOtpEnabled,
showOnDesktop:
params?.modalConfig[WALLET_ADAPTERS.OPENLOGIN].loginMethods[LOGIN_PROVIDER.SMS_PASSWORDLESS].showOnDesktop === false
? false
: smsOtpEnabled,
showOnMobile:
params?.modalConfig[WALLET_ADAPTERS.OPENLOGIN].loginMethods[LOGIN_PROVIDER.SMS_PASSWORDLESS].showOnMobile === false
? false
: smsOtpEnabled,
},
},
},
Expand Down

0 comments on commit ff8a8a7

Please sign in to comment.