You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// get it from https://dashboard.web3auth.io by creating a Plug n Play project.
171
+
const clientId =
172
+
"BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get it from https://dashboard.web3auth.io by creating a Plug n Play project.
62
173
63
174
const chainConfig = {
64
-
chainNamespace: "eip155",
175
+
chainNamespace: CHAIN_NAMESPACES.EIP155,
65
176
chainId: "0x1",
66
177
rpcTarget: "https://rpc.ankr.com/eth",
67
178
displayName: "Ethereum Mainnet",
@@ -79,58 +190,55 @@ const web3auth = new Web3AuthNoModal({
79
190
privateKeyProvider: privateKeyProvider,
80
191
});
81
192
82
-
constopenloginAdapter=newOpenloginAdapter({
193
+
constauthAdapter=newAuthAdapter({
83
194
adapterSettings: {
84
195
loginConfig: {
85
196
// Google login
86
197
google: {
87
-
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. w3a-agg-example
198
+
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. aggregate-sapphire
88
199
verifierSubIdentifier: "w3a-google", // Pass the Sub-Verifier here. eg w3a-google
89
200
typeOfLogin: "google", // Pass the type of login provider.
90
201
clientId: "519228911939-cri01h55lsjbsia1k7ll6qpalrus75ps.apps.googleusercontent.com", // Pass the Google `Client ID` here.
91
202
},
92
203
// GitHub Login via Auth0
93
204
github: {
94
-
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. w3a-agg-example
205
+
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. aggregate-sapphire
95
206
verifierSubIdentifier: "w3a-a0-github", // Pass the Sub-Verifier here. eg w3a-a0-github
96
207
typeOfLogin: "jwt", // Pass the type of login provider. For Auth0, it's jwt and not Auth0.
97
208
clientId: "hiLqaop0amgzCC0AXo4w0rrG9abuJTdu", // Pass the Auth0 `Client ID` here.
98
209
},
99
210
// Email Password Login via Auth0
100
-
emailpasswordless: {
101
-
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. w3a-agg-example
102
-
verifierSubIdentifier: "w3a-a0-email-passwordless", // Pass the Sub-Verifier here. eg w3a-a0-email-passwordless
103
-
typeOfLogin: "jwt", // Pass the type of login provider. For Auth0, it's jwt and not Auth0.
104
-
clientId: "QiEf8qZ9IoasbZsbHvjKZku4LdnRC1Ct", // Pass the `Client ID` of your Auth0 Application.
211
+
email_passwordless: {
212
+
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. aggregate-sapphire
213
+
verifierSubIdentifier: "w3a-email-passwordless", // Pass the Sub-Verifier here. eg w3a-email-passwordless
214
+
typeOfLogin: "email_passwordless", // Pass the type of login provider.
215
+
clientId, // Pass the Web3Auth `Client ID` here.
105
216
},
106
217
},
107
218
},
108
219
privateKeyProvider,
109
220
});
110
221
111
-
web3auth.configureAdapter(openloginAdapter);
222
+
web3auth.configureAdapter(authAdapter);
112
223
113
224
// Initialize
114
225
awaitweb3auth.init();
115
226
116
227
// When user clicks Google button, use this to Login with Google
domain: "https://web3auth.au.auth0.com", // Pass the Auth0 Domain here, eg. https://web3auth.au.auth0.com
@@ -147,3 +255,39 @@ Check out the
147
255
[**full example on GitHub**](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-no-modal-sdk/custom-authentication/aggregate-verifier-examples/auth0-google-aggregate-no-modal-example).
0 commit comments