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.
172
+
"BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get it from https://dashboard.web3auth.io by creating a Plug n Play project.
105
173
106
174
const chainConfig = {
107
175
chainNamespace: CHAIN_NAMESPACES.EIP155,
@@ -122,58 +190,55 @@ const web3auth = new Web3AuthNoModal({
122
190
privateKeyProvider: privateKeyProvider,
123
191
});
124
192
125
-
constopenloginAdapter=newOpenloginAdapter({
193
+
constauthAdapter=newAuthAdapter({
126
194
adapterSettings: {
127
195
loginConfig: {
128
196
// Google login
129
197
google: {
130
-
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. w3a-agg-example
198
+
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. aggregate-sapphire
131
199
verifierSubIdentifier: "w3a-google", // Pass the Sub-Verifier here. eg w3a-google
132
200
typeOfLogin: "google", // Pass the type of login provider.
133
201
clientId: "519228911939-cri01h55lsjbsia1k7ll6qpalrus75ps.apps.googleusercontent.com", // Pass the Google `Client ID` here.
134
202
},
135
203
// GitHub Login via Auth0
136
204
github: {
137
-
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. w3a-agg-example
205
+
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. aggregate-sapphire
138
206
verifierSubIdentifier: "w3a-a0-github", // Pass the Sub-Verifier here. eg w3a-a0-github
139
207
typeOfLogin: "jwt", // Pass the type of login provider. For Auth0, it's jwt and not Auth0.
140
208
clientId: "hiLqaop0amgzCC0AXo4w0rrG9abuJTdu", // Pass the Auth0 `Client ID` here.
141
209
},
142
210
// Email Password Login via Auth0
143
-
emailpasswordless: {
144
-
verifier: "aggregate-sapphire", // Pass the Verifier name here. eg. w3a-agg-example
145
-
verifierSubIdentifier: "w3a-a0-email-passwordless", // Pass the Sub-Verifier here. eg w3a-a0-email-passwordless
146
-
typeOfLogin: "jwt", // Pass the type of login provider. For Auth0, it's jwt and not Auth0.
147
-
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.
148
216
},
149
217
},
150
218
},
151
219
privateKeyProvider,
152
220
});
153
221
154
-
web3auth.configureAdapter(openloginAdapter);
222
+
web3auth.configureAdapter(authAdapter);
155
223
156
224
// Initialize
157
225
awaitweb3auth.init();
158
226
159
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
@@ -190,3 +255,39 @@ Check out the
190
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