Skip to content

Commit

Permalink
feat: custom auth vue app
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-web3 committed Feb 4, 2025
1 parent 3717a38 commit f97c776
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions examples/vue-app/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,20 @@ const onLogin = async () => {
privKeyInfo = data?.finalKeyData;
localUserInfo = data?.userInfo;
} else {
const data = await customAuthSdk.value?.triggerLogin({
typeOfLogin,
verifier,
clientId,
jwtParams,
const data = await customAuthSdk.value.triggerAggregateLogin({
aggregateVerifierType: "single_id_verifier",
subVerifierDetailsArray: [
{
clientId,
typeOfLogin,
verifier: "web3auth",
jwtParams,
},
],
verifierIdentifier: verifier,
});
privKeyInfo = data?.finalKeyData;
localUserInfo = data?.userInfo;
localUserInfo = data?.userInfo[0];
}
if (privKeyInfo) {
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-app/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const WEB3AUTH_EMAIL_PASSWORDLESS = "email_passwordless";
export const WEB3AUTH_SMS_PASSWORDLESS = "sms_passwordless";
export const LOCAL_NETWORK = "network";
export const uxModeOptions = Object.values(UX_MODE).map((x) => ({ name: x, value: x }));
export const WEB3AUTH_CLIENT_ID = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ";
export const WEB3AUTH_CLIENT_ID = "BJ6l3_kIQiy6YVL7zDlCcEAvGpGukwFgp-C_0WvNI_fAEeIaoVRLDrV5OjtbZr_zJxbyXFsXMT-yhQiUNYvZWpo";

export interface LoginProviderItem {
name: string;
Expand Down

0 comments on commit f97c776

Please sign in to comment.