File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -384,14 +384,20 @@ const onLogin = async () => {
384384 privKeyInfo = data ?.finalKeyData ;
385385 localUserInfo = data ?.userInfo ;
386386 } else {
387- const data = await customAuthSdk .value ?.triggerLogin ({
388- typeOfLogin ,
389- verifier ,
390- clientId ,
391- jwtParams ,
387+ const data = await customAuthSdk .value .triggerAggregateLogin ({
388+ aggregateVerifierType: " single_id_verifier" ,
389+ subVerifierDetailsArray: [
390+ {
391+ clientId ,
392+ typeOfLogin ,
393+ verifier: " web3auth" ,
394+ jwtParams ,
395+ },
396+ ],
397+ verifierIdentifier: verifier ,
392398 });
393399 privKeyInfo = data ?.finalKeyData ;
394- localUserInfo = data ?.userInfo ;
400+ localUserInfo = data ?.userInfo [ 0 ] ;
395401 }
396402
397403 if (privKeyInfo ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const WEB3AUTH_EMAIL_PASSWORDLESS = "email_passwordless";
2727export const WEB3AUTH_SMS_PASSWORDLESS = "sms_passwordless" ;
2828export const LOCAL_NETWORK = "network" ;
2929export const uxModeOptions = Object . values ( UX_MODE ) . map ( ( x ) => ( { name : x , value : x } ) ) ;
30- export const WEB3AUTH_CLIENT_ID = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ " ;
30+ export const WEB3AUTH_CLIENT_ID = "BJ6l3_kIQiy6YVL7zDlCcEAvGpGukwFgp-C_0WvNI_fAEeIaoVRLDrV5OjtbZr_zJxbyXFsXMT-yhQiUNYvZWpo " ;
3131
3232export interface LoginProviderItem {
3333 name : string ;
You can’t perform that action at this time.
0 commit comments