@web3auth/no-modal 10.0.0-alpha.2 → 10.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs/base/chain/config.js +2 -1
- package/dist/lib.cjs/base/connector/constants.js +5 -0
- package/dist/lib.cjs/base/utils.js +3 -2
- package/dist/lib.cjs/base/wallet/index.js +2 -1
- package/dist/lib.cjs/connectors/auth-connector/authConnector.js +67 -19
- package/dist/lib.cjs/connectors/injected-solana-connector/walletStandardConnector.js +0 -1
- package/dist/lib.cjs/connectors/metamask-connector/metamaskConnector.js +197 -0
- package/dist/lib.cjs/connectors/utils.js +61 -0
- package/dist/lib.cjs/connectors/wallet-connect-v2-connector/WalletConnectV2Provider.js +0 -1
- package/dist/lib.cjs/connectors/wallet-connect-v2-connector/config.js +3 -58
- package/dist/lib.cjs/connectors/wallet-connect-v2-connector/walletConnectV2Connector.js +6 -16
- package/dist/lib.cjs/index.js +1 -2
- package/dist/lib.cjs/noModal.js +119 -29
- package/dist/lib.cjs/plugins/wallet-services-plugin/plugin.js +1 -1
- package/dist/lib.cjs/providers/account-abstraction-provider/providers/AccountAbstractionProvider.js +18 -12
- package/dist/lib.cjs/providers/solana-provider/rpc/solanaRpcMiddlewares.js +1 -1
- package/dist/lib.cjs/types/base/chain/IChainInterface.d.ts +3 -45
- package/dist/lib.cjs/types/base/connector/constants.d.ts +4 -0
- package/dist/lib.cjs/types/base/connector/interfaces.d.ts +7 -3
- package/dist/lib.cjs/types/base/core/IWeb3Auth.d.ts +10 -4
- package/dist/lib.cjs/types/base/interfaces.d.ts +66 -9
- package/dist/lib.cjs/types/base/utils.d.ts +2 -2
- package/dist/lib.cjs/types/base/wallet/index.d.ts +2 -0
- package/dist/lib.cjs/types/connectors/auth-connector/authConnector.d.ts +5 -2
- package/dist/lib.cjs/types/connectors/auth-connector/interface.d.ts +4 -2
- package/dist/lib.cjs/types/connectors/metamask-connector/index.d.ts +1 -0
- package/dist/lib.cjs/types/connectors/metamask-connector/metamaskConnector.d.ts +6 -0
- package/dist/lib.cjs/types/connectors/utils.d.ts +8 -0
- package/dist/lib.cjs/types/noModal.d.ts +5 -3
- package/dist/lib.cjs/types/providers/account-abstraction-provider/providers/AccountAbstractionProvider.d.ts +4 -5
- package/dist/lib.cjs/types/providers/solana-provider/providers/index.d.ts +0 -1
- package/dist/lib.esm/base/chain/config.js +2 -1
- package/dist/lib.esm/base/connector/constants.js +5 -1
- package/dist/lib.esm/base/utils.js +3 -2
- package/dist/lib.esm/base/wallet/index.js +2 -1
- package/dist/lib.esm/connectors/auth-connector/authConnector.js +67 -19
- package/dist/lib.esm/connectors/injected-solana-connector/walletStandardConnector.js +0 -1
- package/dist/lib.esm/connectors/metamask-connector/metamaskConnector.js +195 -0
- package/dist/lib.esm/connectors/utils.js +58 -0
- package/dist/lib.esm/connectors/wallet-connect-v2-connector/WalletConnectV2Provider.js +1 -2
- package/dist/lib.esm/connectors/wallet-connect-v2-connector/config.js +1 -56
- package/dist/lib.esm/connectors/wallet-connect-v2-connector/walletConnectV2Connector.js +6 -16
- package/dist/lib.esm/connectors/wallet-connect-v2-connector/walletConnectV2Utils.js +1 -1
- package/dist/lib.esm/index.js +1 -2
- package/dist/lib.esm/noModal.js +121 -31
- package/dist/lib.esm/plugins/wallet-services-plugin/plugin.js +1 -1
- package/dist/lib.esm/providers/account-abstraction-provider/providers/AccountAbstractionProvider.js +18 -12
- package/dist/lib.esm/providers/solana-provider/rpc/solanaRpcMiddlewares.js +1 -1
- package/dist/noModal.umd.min.js +1 -1
- package/package.json +5 -4
- package/dist/lib.cjs/connectors/auth-connector/config/authConnectionConfig.js +0 -216
- package/dist/lib.cjs/connectors/auth-connector/config/config-build.js +0 -54
- package/dist/lib.cjs/connectors/auth-connector/config/config-env.js +0 -361
- package/dist/lib.cjs/providers/solana-provider/providers/privateKeyProvider/solanaPrivateKeyProvider.js +0 -161
- package/dist/lib.cjs/providers/solana-provider/providers/privateKeyProvider/solanaPrivateKeyUtils.js +0 -104
- package/dist/lib.cjs/types/connectors/auth-connector/config/authConnectionConfig.d.ts +0 -2
- package/dist/lib.cjs/types/connectors/auth-connector/config/config-build.d.ts +0 -18
- package/dist/lib.cjs/types/connectors/auth-connector/config/config-env.d.ts +0 -60
- package/dist/lib.cjs/types/providers/solana-provider/providers/privateKeyProvider/index.d.ts +0 -1
- package/dist/lib.cjs/types/providers/solana-provider/providers/privateKeyProvider/solanaPrivateKeyProvider.d.ts +0 -30
- package/dist/lib.cjs/types/providers/solana-provider/providers/privateKeyProvider/solanaPrivateKeyUtils.d.ts +0 -7
- package/dist/lib.esm/connectors/auth-connector/config/authConnectionConfig.js +0 -214
- package/dist/lib.esm/connectors/auth-connector/config/config-build.js +0 -48
- package/dist/lib.esm/connectors/auth-connector/config/config-env.js +0 -359
- package/dist/lib.esm/providers/solana-provider/providers/privateKeyProvider/solanaPrivateKeyProvider.js +0 -159
- package/dist/lib.esm/providers/solana-provider/providers/privateKeyProvider/solanaPrivateKeyUtils.js +0 -102
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web3auth/no-modal",
|
|
3
|
-
"version": "10.0.0-
|
|
3
|
+
"version": "10.0.0-beta.0",
|
|
4
4
|
"description": "Multi chain wallet aggregator for web3Auth",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web3Auth/no-modal",
|
|
@@ -50,13 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@ethereumjs/util": "^9.1.0",
|
|
53
|
+
"@metamask/sdk": "^0.32.1",
|
|
53
54
|
"@solana/wallet-standard-features": "^1.3.0",
|
|
54
55
|
"@solana/web3.js": "^1.98.0",
|
|
55
56
|
"@toruslabs/base-controllers": "^8.0.0",
|
|
56
57
|
"@toruslabs/bs58": "^1.0.0",
|
|
57
58
|
"@toruslabs/constants": "^15.0.0",
|
|
58
59
|
"@toruslabs/eccrypto": "^6.0.2",
|
|
59
|
-
"@toruslabs/ethereum-controllers": "^8.
|
|
60
|
+
"@toruslabs/ethereum-controllers": "^8.1.0",
|
|
60
61
|
"@toruslabs/http-helpers": "^8.1.1",
|
|
61
62
|
"@toruslabs/secure-pub-sub": "3.0.2",
|
|
62
63
|
"@toruslabs/tweetnacl-js": "^1.0.4",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"@walletconnect/types": "^2.19.1",
|
|
68
69
|
"@walletconnect/utils": "^2.19.1",
|
|
69
70
|
"@web3auth/auth": "^10.2.3",
|
|
70
|
-
"@web3auth/ws-embed": "
|
|
71
|
+
"@web3auth/ws-embed": "^5.0.0",
|
|
71
72
|
"assert": "^2.1.0",
|
|
72
73
|
"bignumber.js": "^9.1.2",
|
|
73
74
|
"bn.js": "^5.2.1",
|
|
@@ -139,5 +140,5 @@
|
|
|
139
140
|
"node": ">=20.x",
|
|
140
141
|
"npm": ">=9.x"
|
|
141
142
|
},
|
|
142
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "827d490e28e2c77805995cbb2db5eb849350a7c8"
|
|
143
144
|
}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var auth = require('@web3auth/auth');
|
|
4
|
-
var configBuild = require('./config-build.js');
|
|
5
|
-
var configEnv = require('./config-env.js');
|
|
6
|
-
|
|
7
|
-
const getAuthConnectionConfig = (environment, network) => {
|
|
8
|
-
const currentConfigEnv = configEnv.configEnv[network];
|
|
9
|
-
const currentBuildEnv = configBuild.configBuild[environment];
|
|
10
|
-
if (!currentConfigEnv || !currentBuildEnv) {
|
|
11
|
-
throw new Error("Invalid environment settings");
|
|
12
|
-
}
|
|
13
|
-
return [{
|
|
14
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.googleVerifier,
|
|
15
|
-
authConnection: auth.AUTH_CONNECTION.GOOGLE,
|
|
16
|
-
name: auth.AUTH_CONNECTION.GOOGLE,
|
|
17
|
-
description: "login.verifier-google-desc",
|
|
18
|
-
clientId: currentConfigEnv.googleClientId,
|
|
19
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.googleVerifier : "",
|
|
20
|
-
mainOption: true,
|
|
21
|
-
// For torus only
|
|
22
|
-
walletAuthConnectionId: currentConfigEnv.walletGoogleVerifier
|
|
23
|
-
}, {
|
|
24
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.facebookVerifier,
|
|
25
|
-
authConnection: auth.AUTH_CONNECTION.FACEBOOK,
|
|
26
|
-
name: auth.AUTH_CONNECTION.FACEBOOK,
|
|
27
|
-
description: "",
|
|
28
|
-
clientId: currentConfigEnv.facebookClientId,
|
|
29
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.facebookVerifier : "",
|
|
30
|
-
mainOption: true,
|
|
31
|
-
// For torus only
|
|
32
|
-
walletAuthConnectionId: currentConfigEnv.walletFacebookVerifier
|
|
33
|
-
}, {
|
|
34
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.twitterVerifier,
|
|
35
|
-
authConnection: auth.AUTH_CONNECTION.TWITTER,
|
|
36
|
-
name: auth.AUTH_CONNECTION.TWITTER,
|
|
37
|
-
description: "",
|
|
38
|
-
clientId: currentConfigEnv.twitterClientId,
|
|
39
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.twitterVerifier : "",
|
|
40
|
-
mainOption: true,
|
|
41
|
-
jwtParameters: {
|
|
42
|
-
domain: currentConfigEnv.loginDomain,
|
|
43
|
-
connection: "twitter",
|
|
44
|
-
isUserIdCaseSensitive: false
|
|
45
|
-
},
|
|
46
|
-
// For torus only
|
|
47
|
-
walletAuthConnectionId: currentConfigEnv.walletTwitterVerifier
|
|
48
|
-
}, {
|
|
49
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.discordVerifier,
|
|
50
|
-
authConnection: auth.AUTH_CONNECTION.DISCORD,
|
|
51
|
-
name: auth.AUTH_CONNECTION.DISCORD,
|
|
52
|
-
description: "",
|
|
53
|
-
clientId: currentConfigEnv.discordClientId,
|
|
54
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.discordVerifier : "",
|
|
55
|
-
// For torus only
|
|
56
|
-
walletAuthConnectionId: currentConfigEnv.walletDiscordVerifier
|
|
57
|
-
}, {
|
|
58
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.lineVerifier,
|
|
59
|
-
authConnection: auth.AUTH_CONNECTION.LINE,
|
|
60
|
-
name: auth.AUTH_CONNECTION.LINE,
|
|
61
|
-
description: "",
|
|
62
|
-
clientId: currentConfigEnv.lineClientId,
|
|
63
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.lineVerifier : "",
|
|
64
|
-
mainOption: false,
|
|
65
|
-
jwtParameters: {
|
|
66
|
-
domain: currentConfigEnv.loginDomain,
|
|
67
|
-
connection: "line",
|
|
68
|
-
prompt: "consent"
|
|
69
|
-
},
|
|
70
|
-
// For torus only
|
|
71
|
-
walletAuthConnectionId: currentConfigEnv.walletLineVerifier
|
|
72
|
-
}, {
|
|
73
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.redditVerifier,
|
|
74
|
-
authConnection: auth.AUTH_CONNECTION.REDDIT,
|
|
75
|
-
name: auth.AUTH_CONNECTION.REDDIT,
|
|
76
|
-
description: "",
|
|
77
|
-
clientId: currentConfigEnv.redditClientId,
|
|
78
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.redditVerifier : "",
|
|
79
|
-
mainOption: false,
|
|
80
|
-
jwtParameters: {
|
|
81
|
-
domain: currentConfigEnv.loginDomain,
|
|
82
|
-
userIdField: "name",
|
|
83
|
-
connection: "Reddit"
|
|
84
|
-
},
|
|
85
|
-
// For torus only
|
|
86
|
-
walletAuthConnectionId: currentConfigEnv.walletRedditVerifier
|
|
87
|
-
}, {
|
|
88
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.appleVerifier,
|
|
89
|
-
authConnection: auth.AUTH_CONNECTION.APPLE,
|
|
90
|
-
name: auth.AUTH_CONNECTION.APPLE,
|
|
91
|
-
description: "",
|
|
92
|
-
clientId: currentConfigEnv.appleClientId,
|
|
93
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.appleVerifier : "",
|
|
94
|
-
mainOption: false,
|
|
95
|
-
jwtParameters: {
|
|
96
|
-
domain: currentConfigEnv.loginDomain,
|
|
97
|
-
connection: "apple"
|
|
98
|
-
},
|
|
99
|
-
// For torus only
|
|
100
|
-
walletAuthConnectionId: currentConfigEnv.walletAppleVerifier
|
|
101
|
-
}, {
|
|
102
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.githubVerifier,
|
|
103
|
-
authConnection: auth.AUTH_CONNECTION.GITHUB,
|
|
104
|
-
description: "",
|
|
105
|
-
name: auth.AUTH_CONNECTION.GITHUB,
|
|
106
|
-
clientId: currentConfigEnv.githubClientId,
|
|
107
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.githubVerifier : "",
|
|
108
|
-
mainOption: false,
|
|
109
|
-
jwtParameters: {
|
|
110
|
-
domain: currentConfigEnv.loginDomain,
|
|
111
|
-
connection: "github",
|
|
112
|
-
isUserIdCaseSensitive: false
|
|
113
|
-
},
|
|
114
|
-
// For torus only
|
|
115
|
-
walletAuthConnectionId: currentConfigEnv.walletGithubVerifier
|
|
116
|
-
}, {
|
|
117
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.twitchVerifier,
|
|
118
|
-
authConnection: auth.AUTH_CONNECTION.TWITCH,
|
|
119
|
-
description: "",
|
|
120
|
-
name: auth.AUTH_CONNECTION.TWITCH,
|
|
121
|
-
clientId: currentConfigEnv.twitchClientId,
|
|
122
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.twitchVerifier : "",
|
|
123
|
-
mainOption: false,
|
|
124
|
-
// For torus only
|
|
125
|
-
walletAuthConnectionId: currentConfigEnv.walletTwitchVerifier
|
|
126
|
-
}, {
|
|
127
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.linkedinVerifier,
|
|
128
|
-
authConnection: auth.AUTH_CONNECTION.LINKEDIN,
|
|
129
|
-
description: "",
|
|
130
|
-
name: auth.AUTH_CONNECTION.LINKEDIN,
|
|
131
|
-
clientId: currentConfigEnv.linkedinClientId,
|
|
132
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.linkedinVerifier : "",
|
|
133
|
-
mainOption: false,
|
|
134
|
-
jwtParameters: {
|
|
135
|
-
domain: currentConfigEnv.loginDomain,
|
|
136
|
-
connection: "linkedin"
|
|
137
|
-
},
|
|
138
|
-
// For torus only
|
|
139
|
-
walletAuthConnectionId: currentConfigEnv.walletLinkedinVerifier
|
|
140
|
-
}, {
|
|
141
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.wechatVerifier,
|
|
142
|
-
authConnection: auth.AUTH_CONNECTION.WECHAT,
|
|
143
|
-
description: "",
|
|
144
|
-
name: auth.AUTH_CONNECTION.WECHAT,
|
|
145
|
-
clientId: currentConfigEnv.wechatClientId,
|
|
146
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.wechatVerifier : "",
|
|
147
|
-
mainOption: false,
|
|
148
|
-
showOnSocialBackupFactor: true,
|
|
149
|
-
jwtParameters: {
|
|
150
|
-
domain: currentConfigEnv.loginDomain,
|
|
151
|
-
connection: "Wechat"
|
|
152
|
-
},
|
|
153
|
-
// For torus only
|
|
154
|
-
walletAuthConnectionId: currentConfigEnv.walletWechatVerifier
|
|
155
|
-
}, {
|
|
156
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.kakaoVerifier,
|
|
157
|
-
authConnection: auth.AUTH_CONNECTION.KAKAO,
|
|
158
|
-
description: "",
|
|
159
|
-
name: auth.AUTH_CONNECTION.KAKAO,
|
|
160
|
-
clientId: currentConfigEnv.kakaoClientId,
|
|
161
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.kakaoVerifier : "",
|
|
162
|
-
mainOption: false,
|
|
163
|
-
jwtParameters: {
|
|
164
|
-
domain: currentConfigEnv.loginDomain,
|
|
165
|
-
connection: "Kakao"
|
|
166
|
-
},
|
|
167
|
-
// For torus only
|
|
168
|
-
walletAuthConnectionId: currentConfigEnv.walletKakaoVerifier
|
|
169
|
-
}, {
|
|
170
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.hostedEmailPasswordlessVerifier,
|
|
171
|
-
description: "login.verifier-email-desc",
|
|
172
|
-
authConnection: auth.AUTH_CONNECTION.EMAIL_PASSWORDLESS,
|
|
173
|
-
name: "email",
|
|
174
|
-
clientId: currentConfigEnv.hostedEmailPasswordlessClientId,
|
|
175
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.hostedEmailPasswordlessVerifier : "",
|
|
176
|
-
mainOption: false,
|
|
177
|
-
jwtParameters: {
|
|
178
|
-
domain: currentBuildEnv.passwordlessHost,
|
|
179
|
-
userIdField: "name",
|
|
180
|
-
isUserIdCaseSensitive: false,
|
|
181
|
-
flow_type: auth.EMAIL_FLOW.code
|
|
182
|
-
},
|
|
183
|
-
// For torus only
|
|
184
|
-
walletAuthConnectionId: currentConfigEnv.walletHostedEmailPasswordlessVerifier
|
|
185
|
-
}, {
|
|
186
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.hostedSmsPasswordlessVerifier,
|
|
187
|
-
description: "login.verifier-sms-desc-2",
|
|
188
|
-
authConnection: auth.AUTH_CONNECTION.SMS_PASSWORDLESS,
|
|
189
|
-
name: "mobile",
|
|
190
|
-
clientId: currentConfigEnv.hostedSmsPasswordlessClientId,
|
|
191
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.hostedSmsPasswordlessVerifier : "",
|
|
192
|
-
mainOption: false,
|
|
193
|
-
jwtParameters: {
|
|
194
|
-
domain: currentBuildEnv.passwordlessHost,
|
|
195
|
-
userIdField: "name",
|
|
196
|
-
isVerifierIdCaseSensitive: false
|
|
197
|
-
},
|
|
198
|
-
// for torus only.
|
|
199
|
-
walletAuthConnectionId: currentConfigEnv.walletHostedSmsPasswordlessVerifier
|
|
200
|
-
}, {
|
|
201
|
-
authConnectionId: currentConfigEnv.verifierSubIdentifier || currentConfigEnv.hostedFarcasterVerifier,
|
|
202
|
-
description: "",
|
|
203
|
-
authConnection: auth.AUTH_CONNECTION.FARCASTER,
|
|
204
|
-
name: "Farcaster",
|
|
205
|
-
clientId: currentConfigEnv.hostedFarcasterClientId,
|
|
206
|
-
groupedAuthConnectionId: currentConfigEnv.verifierSubIdentifier ? currentConfigEnv.hostedFarcasterVerifier : "",
|
|
207
|
-
mainOption: false,
|
|
208
|
-
jwtParameters: {
|
|
209
|
-
domain: currentConfigEnv.farcasterLoginDomain
|
|
210
|
-
},
|
|
211
|
-
// For torus only
|
|
212
|
-
walletAuthConnectionId: ""
|
|
213
|
-
}];
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
exports.getAuthConnectionConfig = getAuthConnectionConfig;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var auth = require('@web3auth/auth');
|
|
4
|
-
|
|
5
|
-
// Passwordless backend service
|
|
6
|
-
const PASSWORDLESS_SERVER_API_URL = "https://api.web3auth.io/passwordless-service";
|
|
7
|
-
const DEVELOP_PASSWORDLESS_SERVER_API_URL = "https://api-develop.web3auth.io/passwordless-service";
|
|
8
|
-
// Auth backend service
|
|
9
|
-
const AUTH_SERVER_URL = "https://api.web3auth.io/auth-service";
|
|
10
|
-
const DEVELOP_AUTH_SERVER_URL = "https://api-develop.web3auth.io/auth-service";
|
|
11
|
-
const configBuild = {
|
|
12
|
-
[auth.BUILD_ENV.DEVELOPMENT]: {
|
|
13
|
-
apiHost: `${DEVELOP_AUTH_SERVER_URL}`,
|
|
14
|
-
logLevel: "debug",
|
|
15
|
-
passwordlessBackendHost: `${DEVELOP_PASSWORDLESS_SERVER_API_URL}/api/v3/`,
|
|
16
|
-
passwordlessHost: "https://develop-passwordless.web3auth.io",
|
|
17
|
-
sentrySampleRate: "0",
|
|
18
|
-
sentryTransactionSampleRate: "0",
|
|
19
|
-
supportsVersioning: false
|
|
20
|
-
},
|
|
21
|
-
[auth.BUILD_ENV.STAGING]: {
|
|
22
|
-
apiHost: AUTH_SERVER_URL,
|
|
23
|
-
logLevel: "debug",
|
|
24
|
-
passwordlessBackendHost: `${PASSWORDLESS_SERVER_API_URL}/api/v3/`,
|
|
25
|
-
passwordlessHost: "https://staging-passwordless.web3auth.io/v6",
|
|
26
|
-
sentrySampleRate: "0.1",
|
|
27
|
-
sentryTransactionSampleRate: "0.1",
|
|
28
|
-
supportsVersioning: true
|
|
29
|
-
},
|
|
30
|
-
[auth.BUILD_ENV.PRODUCTION]: {
|
|
31
|
-
apiHost: AUTH_SERVER_URL,
|
|
32
|
-
logLevel: "error",
|
|
33
|
-
passwordlessBackendHost: `${PASSWORDLESS_SERVER_API_URL}/api/v3/`,
|
|
34
|
-
passwordlessHost: "https://passwordless.web3auth.io/v6",
|
|
35
|
-
sentrySampleRate: "0.5",
|
|
36
|
-
sentryTransactionSampleRate: "0.001",
|
|
37
|
-
supportsVersioning: true
|
|
38
|
-
},
|
|
39
|
-
[auth.BUILD_ENV.TESTING]: {
|
|
40
|
-
apiHost: DEVELOP_AUTH_SERVER_URL,
|
|
41
|
-
logLevel: "debug",
|
|
42
|
-
passwordlessBackendHost: `${DEVELOP_PASSWORDLESS_SERVER_API_URL}/api/v3/`,
|
|
43
|
-
passwordlessHost: "https://develop-passwordless.web3auth.io",
|
|
44
|
-
sentrySampleRate: "1",
|
|
45
|
-
sentryTransactionSampleRate: "0.1",
|
|
46
|
-
supportsVersioning: false
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
exports.AUTH_SERVER_URL = AUTH_SERVER_URL;
|
|
51
|
-
exports.DEVELOP_AUTH_SERVER_URL = DEVELOP_AUTH_SERVER_URL;
|
|
52
|
-
exports.DEVELOP_PASSWORDLESS_SERVER_API_URL = DEVELOP_PASSWORDLESS_SERVER_API_URL;
|
|
53
|
-
exports.PASSWORDLESS_SERVER_API_URL = PASSWORDLESS_SERVER_API_URL;
|
|
54
|
-
exports.configBuild = configBuild;
|
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var constants = require('@toruslabs/constants');
|
|
4
|
-
var auth = require('@web3auth/auth');
|
|
5
|
-
|
|
6
|
-
const configEnv = {
|
|
7
|
-
[auth.WEB3AUTH_NETWORK.CELESTE]: {
|
|
8
|
-
// client ids - no client ids actually
|
|
9
|
-
googleClientId: "876733105116-80tsjqj79glh40206qnuq0uri8dk1o5s.apps.googleusercontent.com",
|
|
10
|
-
appleClientId: "5UNu0Kku0hkao8e5OgM4vglijiFbNpCJ",
|
|
11
|
-
discordClientId: "936166141674520606",
|
|
12
|
-
facebookClientId: "957274648509106",
|
|
13
|
-
githubClientId: "9kyWrFgR6nnVQGSdns4eOpMHsu2kDQGG",
|
|
14
|
-
kakaoClientId: "SOz19zmf9CTUX05rpNCPx0gcacdxVHQU",
|
|
15
|
-
lineClientId: "E57NnYyXZVxB7wCtqev94AkrRY52Chzf",
|
|
16
|
-
linkedinClientId: "fy52Q9blaWk5xyKisReH0PW3TPPCBoZE",
|
|
17
|
-
redditClientId: "H0HxUmLs5HCuteyzEuHklZp1fo1Fz9tv",
|
|
18
|
-
twitchClientId: "owmmb3h8kcv7dpk7t7q0cnw5wfhyeo",
|
|
19
|
-
twitterClientId: "PDivfIQrz4kwpBZKKr2m0kP1F0k4Oswk",
|
|
20
|
-
weiboClientId: "ugqRyaPpzhr1FAqX4y0H4yvvS8CwE0ei",
|
|
21
|
-
wechatClientId: "15MPSyfqCmoxcWHUOh9zNLpgXms4C0ho",
|
|
22
|
-
hostedEmailPasswordlessClientId: "KG7zk89X3QgttSyX9NJ4fGEyFNhOcJTw",
|
|
23
|
-
hostedSmsPasswordlessClientId: "KG7zk89X3QgttSyX9NJ4fGEyFNhOcJTw",
|
|
24
|
-
authenticatorClientId: "7aIvQVapAfmJpikqo7m2PRQpNBu5QnHC",
|
|
25
|
-
passkeysClientId: "passkey",
|
|
26
|
-
// tKey verifiers
|
|
27
|
-
googleVerifier: "tkey-google-celeste",
|
|
28
|
-
appleVerifier: "tkey-auth0-apple-celeste",
|
|
29
|
-
discordVerifier: "tkey-discord-celeste",
|
|
30
|
-
facebookVerifier: "tkey-facebook-celeste",
|
|
31
|
-
githubVerifier: "tkey-auth0-github-celeste",
|
|
32
|
-
kakaoVerifier: "tkey-auth0-kakao-celeste",
|
|
33
|
-
lineVerifier: "tkey-auth0-line-celeste",
|
|
34
|
-
linkedinVerifier: "tkey-auth0-linkedin-celeste",
|
|
35
|
-
redditVerifier: "tkey-reddit-celeste",
|
|
36
|
-
twitchVerifier: "tkey-twitch-celeste",
|
|
37
|
-
twitterVerifier: "tkey-auth0-twitter-celeste",
|
|
38
|
-
weiboVerifier: "tkey-auth0-weibo-celeste",
|
|
39
|
-
wechatVerifier: "tkey-auth0-wechat-celeste",
|
|
40
|
-
hostedEmailPasswordlessVerifier: "tkey-auth0-email-passwordless-celeste",
|
|
41
|
-
hostedSmsPasswordlessVerifier: "tkey-sms-passwordless-celeste",
|
|
42
|
-
passkeysVerifier: "",
|
|
43
|
-
// TODO: change to webauthn-celeste
|
|
44
|
-
authenticatorVerifier: "tkey-authenticator-celeste",
|
|
45
|
-
// tkey verifier sub identifier
|
|
46
|
-
loginDomain: "https://torus.au.auth0.com",
|
|
47
|
-
verifierSubIdentifier: "torus",
|
|
48
|
-
metadataHost: constants.METADATA_MAP[auth.WEB3AUTH_NETWORK.CELESTE],
|
|
49
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.CELESTE]
|
|
50
|
-
},
|
|
51
|
-
[auth.WEB3AUTH_NETWORK.AQUA]: {
|
|
52
|
-
// client ids
|
|
53
|
-
googleClientId: "876733105116-80tsjqj79glh40206qnuq0uri8dk1o5s.apps.googleusercontent.com",
|
|
54
|
-
appleClientId: "5UNu0Kku0hkao8e5OgM4vglijiFbNpCJ",
|
|
55
|
-
discordClientId: "936166141674520606",
|
|
56
|
-
facebookClientId: "957274648509106",
|
|
57
|
-
githubClientId: "9kyWrFgR6nnVQGSdns4eOpMHsu2kDQGG",
|
|
58
|
-
kakaoClientId: "SOz19zmf9CTUX05rpNCPx0gcacdxVHQU",
|
|
59
|
-
lineClientId: "E57NnYyXZVxB7wCtqev94AkrRY52Chzf",
|
|
60
|
-
linkedinClientId: "fy52Q9blaWk5xyKisReH0PW3TPPCBoZE",
|
|
61
|
-
redditClientId: "H0HxUmLs5HCuteyzEuHklZp1fo1Fz9tv",
|
|
62
|
-
twitchClientId: "owmmb3h8kcv7dpk7t7q0cnw5wfhyeo",
|
|
63
|
-
twitterClientId: "PDivfIQrz4kwpBZKKr2m0kP1F0k4Oswk",
|
|
64
|
-
weiboClientId: "ugqRyaPpzhr1FAqX4y0H4yvvS8CwE0ei",
|
|
65
|
-
wechatClientId: "15MPSyfqCmoxcWHUOh9zNLpgXms4C0ho",
|
|
66
|
-
hostedEmailPasswordlessClientId: "KG7zk89X3QgttSyX9NJ4fGEyFNhOcJTw",
|
|
67
|
-
hostedSmsPasswordlessClientId: "KG7zk89X3QgttSyX9NJ4fGEyFNhOcJTw",
|
|
68
|
-
hostedFarcasterClientId: "2da622b8b670e064",
|
|
69
|
-
farcasterLoginDomain: "https://farcaster.web3auth.io",
|
|
70
|
-
authenticatorClientId: "meskAVRzY5DgRUvNgoijhcCkb81cSAvz",
|
|
71
|
-
passkeysClientId: "passkey",
|
|
72
|
-
// tKey verifiers
|
|
73
|
-
googleVerifier: "tkey-google-aqua",
|
|
74
|
-
appleVerifier: "tkey-auth0-apple-aqua",
|
|
75
|
-
discordVerifier: "tkey-discord-aqua",
|
|
76
|
-
facebookVerifier: "tkey-facebook-aqua",
|
|
77
|
-
githubVerifier: "tkey-auth0-github-aqua",
|
|
78
|
-
kakaoVerifier: "tkey-auth0-kakao-aqua",
|
|
79
|
-
lineVerifier: "tkey-auth0-line-aqua",
|
|
80
|
-
linkedinVerifier: "tkey-auth0-linkedin-aqua",
|
|
81
|
-
redditVerifier: "tkey-reddit-aqua",
|
|
82
|
-
twitchVerifier: "tkey-twitch-aqua",
|
|
83
|
-
twitterVerifier: "tkey-auth0-twitter-aqua",
|
|
84
|
-
weiboVerifier: "tkey-auth0-weibo-aqua",
|
|
85
|
-
wechatVerifier: "tkey-auth0-wechat-aqua",
|
|
86
|
-
hostedEmailPasswordlessVerifier: "tkey-auth0-email-passwordless-aqua",
|
|
87
|
-
hostedSmsPasswordlessVerifier: "tkey-sms-passwordless-aqua",
|
|
88
|
-
passkeysVerifier: "passkey-legacy-aqua",
|
|
89
|
-
hostedFarcasterVerifier: "tkey-farcaster-aqua",
|
|
90
|
-
authenticatorVerifier: "tkey-authenticator-aqua",
|
|
91
|
-
loginDomain: "https://torus.au.auth0.com",
|
|
92
|
-
// tkey verifier sub identifier
|
|
93
|
-
verifierSubIdentifier: "torus",
|
|
94
|
-
metadataHost: constants.METADATA_MAP[auth.WEB3AUTH_NETWORK.AQUA],
|
|
95
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.AQUA]
|
|
96
|
-
},
|
|
97
|
-
[auth.WEB3AUTH_NETWORK.CYAN]: {
|
|
98
|
-
// client ids
|
|
99
|
-
googleClientId: "876733105116-80tsjqj79glh40206qnuq0uri8dk1o5s.apps.googleusercontent.com",
|
|
100
|
-
appleClientId: "5UNu0Kku0hkao8e5OgM4vglijiFbNpCJ",
|
|
101
|
-
discordClientId: "936166141674520606",
|
|
102
|
-
facebookClientId: "957274648509106",
|
|
103
|
-
githubClientId: "9kyWrFgR6nnVQGSdns4eOpMHsu2kDQGG",
|
|
104
|
-
kakaoClientId: "SOz19zmf9CTUX05rpNCPx0gcacdxVHQU",
|
|
105
|
-
lineClientId: "E57NnYyXZVxB7wCtqev94AkrRY52Chzf",
|
|
106
|
-
linkedinClientId: "fy52Q9blaWk5xyKisReH0PW3TPPCBoZE",
|
|
107
|
-
redditClientId: "H0HxUmLs5HCuteyzEuHklZp1fo1Fz9tv",
|
|
108
|
-
twitchClientId: "owmmb3h8kcv7dpk7t7q0cnw5wfhyeo",
|
|
109
|
-
twitterClientId: "PDivfIQrz4kwpBZKKr2m0kP1F0k4Oswk",
|
|
110
|
-
weiboClientId: "ugqRyaPpzhr1FAqX4y0H4yvvS8CwE0ei",
|
|
111
|
-
wechatClientId: "15MPSyfqCmoxcWHUOh9zNLpgXms4C0ho",
|
|
112
|
-
hostedEmailPasswordlessClientId: "KG7zk89X3QgttSyX9NJ4fGEyFNhOcJTw",
|
|
113
|
-
hostedSmsPasswordlessClientId: "KG7zk89X3QgttSyX9NJ4fGEyFNhOcJTw",
|
|
114
|
-
hostedFarcasterClientId: "219c9ae7883f3374",
|
|
115
|
-
farcasterLoginDomain: "https://farcaster.web3auth.io",
|
|
116
|
-
authenticatorClientId: "wXbSBpKPOinGeY0FcBxjayQYjD4zhpgW",
|
|
117
|
-
// tKey verifiers
|
|
118
|
-
googleVerifier: "tkey-google-cyan",
|
|
119
|
-
appleVerifier: "tkey-auth0-apple-cyan",
|
|
120
|
-
discordVerifier: "tkey-discord-cyan",
|
|
121
|
-
facebookVerifier: "tkey-facebook-cyan",
|
|
122
|
-
githubVerifier: "tkey-auth0-github-cyan",
|
|
123
|
-
kakaoVerifier: "tkey-auth0-kakao-cyan",
|
|
124
|
-
lineVerifier: "tkey-auth0-line-cyan",
|
|
125
|
-
linkedinVerifier: "tkey-auth0-linkedin-cyan",
|
|
126
|
-
redditVerifier: "tkey-reddit-cyan",
|
|
127
|
-
twitchVerifier: "tkey-twitch-cyan",
|
|
128
|
-
twitterVerifier: "tkey-auth0-twitter-cyan",
|
|
129
|
-
weiboVerifier: "tkey-auth0-weibo-cyan",
|
|
130
|
-
wechatVerifier: "tkey-auth0-wechat-cyan",
|
|
131
|
-
hostedEmailPasswordlessVerifier: "tkey-auth0-email-passwordless-cyan",
|
|
132
|
-
hostedSmsPasswordlessVerifier: "tkey-sms-passwordless-cyan",
|
|
133
|
-
passkeysVerifier: "passkey-legacy-cyan",
|
|
134
|
-
passkeysClientId: "passkey",
|
|
135
|
-
hostedFarcasterVerifier: "tkey-farcaster-cyan",
|
|
136
|
-
authenticatorVerifier: "tkey-authenticator-cyan",
|
|
137
|
-
// tkey verifier sub identifier
|
|
138
|
-
loginDomain: "https://torus.au.auth0.com",
|
|
139
|
-
verifierSubIdentifier: "torus",
|
|
140
|
-
metadataHost: constants.METADATA_MAP[auth.WEB3AUTH_NETWORK.CYAN],
|
|
141
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.CYAN]
|
|
142
|
-
},
|
|
143
|
-
[auth.WEB3AUTH_NETWORK.MAINNET]: {
|
|
144
|
-
// client ids
|
|
145
|
-
googleClientId: "876733105116-i0hj3s53qiio5k95prpfmj0hp0gmgtor.apps.googleusercontent.com",
|
|
146
|
-
appleClientId: "FURCtS8ni75fvwE0nftxSV39u7JaX7X6",
|
|
147
|
-
discordClientId: "630308572013527060",
|
|
148
|
-
facebookClientId: "2554219104599979",
|
|
149
|
-
githubClientId: "bbDQ4eCvCrjY2BGR6OES8qjbMgQDTVHz",
|
|
150
|
-
kakaoClientId: "wpkcc7alGJjEgjaL6q5AWRqgRWHFsdTL",
|
|
151
|
-
lineClientId: "a4jD59wm3e5SpXyfH06HIz63iZRjWxan",
|
|
152
|
-
linkedinClientId: "hgmrH20a7SE1Cpuha1Ke6RlHTdnNwp8a",
|
|
153
|
-
redditClientId: "9dHPrJNbLI7O40dioNipXqAjFbMjAGJR",
|
|
154
|
-
twitchClientId: "tfppratfiloo53g1x133ofa4rc29px",
|
|
155
|
-
twitterClientId: "OPUyrj5G82ZDL1FU1J5Ve3OvQzAsQxy9",
|
|
156
|
-
weiboClientId: "2bfYXOQTB4hcjPeQ03iFuKS5IZ3Mww6H",
|
|
157
|
-
wechatClientId: "cewDD3i6F1vtHeV1KIbaxUZ8vJQjJZ8V",
|
|
158
|
-
hostedEmailPasswordlessClientId: "BDIXq6ryHwTGwN11LFo4kwiMGY50zPip",
|
|
159
|
-
hostedSmsPasswordlessClientId: "BDIXq6ryHwTGwN11LFo4kwiMGY50zPip",
|
|
160
|
-
hostedFarcasterClientId: "f9649680a8716472",
|
|
161
|
-
farcasterLoginDomain: "https://farcaster.web3auth.io",
|
|
162
|
-
authenticatorClientId: "NgpblMzsrw8Ph5JHhHSroFFGJQ8UMUFS",
|
|
163
|
-
// tKey verifiers
|
|
164
|
-
googleVerifier: "tkey-google",
|
|
165
|
-
appleVerifier: "tkey-auth0-apple",
|
|
166
|
-
discordVerifier: "tkey-discord",
|
|
167
|
-
facebookVerifier: "tkey-facebook",
|
|
168
|
-
githubVerifier: "tkey-auth0-github",
|
|
169
|
-
kakaoVerifier: "tkey-auth0-kakao",
|
|
170
|
-
lineVerifier: "tkey-auth0-line",
|
|
171
|
-
linkedinVerifier: "tkey-auth0-linkedin",
|
|
172
|
-
redditVerifier: "tkey-reddit",
|
|
173
|
-
twitchVerifier: "tkey-twitch",
|
|
174
|
-
twitterVerifier: "tkey-auth0-twitter",
|
|
175
|
-
weiboVerifier: "tkey-auth0-weibo",
|
|
176
|
-
wechatVerifier: "tkey-auth0-wechat",
|
|
177
|
-
hostedEmailPasswordlessVerifier: "tkey-auth0-email-passwordless",
|
|
178
|
-
hostedSmsPasswordlessVerifier: "tkey-sms-passwordless",
|
|
179
|
-
passkeysVerifier: "passkey-legacy-mainnet",
|
|
180
|
-
passkeysClientId: "passkey",
|
|
181
|
-
hostedFarcasterVerifier: "tkey-farcaster",
|
|
182
|
-
authenticatorVerifier: "tkey-authenticator",
|
|
183
|
-
// wallet verifiers
|
|
184
|
-
walletGoogleVerifier: "google",
|
|
185
|
-
walletAppleVerifier: "torus-auth0-apple",
|
|
186
|
-
walletDiscordVerifier: "discord",
|
|
187
|
-
walletFacebookVerifier: "facebook",
|
|
188
|
-
walletGithubVerifier: "torus-auth0-github",
|
|
189
|
-
walletKakaoVerifier: "torus-auth0-kakao",
|
|
190
|
-
walletLineVerifier: "torus-auth0-line",
|
|
191
|
-
walletLinkedinVerifier: "torus-auth0-linkedin",
|
|
192
|
-
walletRedditVerifier: "reddit",
|
|
193
|
-
walletTwitchVerifier: "twitch",
|
|
194
|
-
walletTwitterVerifier: "torus-auth0-twitter",
|
|
195
|
-
walletWeiboVerifier: "torus-auth0-weibo",
|
|
196
|
-
walletWechatVerifier: "torus-auth0-wechat",
|
|
197
|
-
walletHostedEmailPasswordlessVerifier: "torus-auth0-email-passwordless",
|
|
198
|
-
walletHostedSmsPasswordlessVerifier: "torus-sms-passwordless",
|
|
199
|
-
// tkey verifier sub identifier
|
|
200
|
-
loginDomain: "https://torus.au.auth0.com",
|
|
201
|
-
verifierSubIdentifier: "torus",
|
|
202
|
-
metadataHost: constants.METADATA_MAP[auth.WEB3AUTH_NETWORK.MAINNET],
|
|
203
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.MAINNET]
|
|
204
|
-
},
|
|
205
|
-
[auth.WEB3AUTH_NETWORK.TESTNET]: {
|
|
206
|
-
// client ids
|
|
207
|
-
googleClientId: "221898609709-obfn3p63741l5333093430j3qeiinaa8.apps.googleusercontent.com",
|
|
208
|
-
appleClientId: "m1Q0gvDfOyZsJCZ3cucSQEe9XMvl9d9L",
|
|
209
|
-
discordClientId: "682533837464666198",
|
|
210
|
-
facebookClientId: "617201755556395",
|
|
211
|
-
githubClientId: "PC2a4tfNRvXbT48t89J5am0oFM21Nxff",
|
|
212
|
-
kakaoClientId: "GW10hvrnQyZ9uRAw41ZOnTRI3jfn0TTC",
|
|
213
|
-
lineClientId: "WN8bOmXKNRH1Gs8k475glfBP5gDZr9H1",
|
|
214
|
-
linkedinClientId: "59YxSgx79Vl3Wi7tQUBqQTRTxWroTuoc",
|
|
215
|
-
redditClientId: "RKlRuuRoDKOItbJSoOZabDLzizvd1uKn",
|
|
216
|
-
twitchClientId: "f5and8beke76mzutmics0zu4gw10dj",
|
|
217
|
-
twitterClientId: "A7H8kkcmyFRlusJQ9dZiqBLraG2yWIsO",
|
|
218
|
-
weiboClientId: "dhFGlWQMoACOI5oS5A1jFglp772OAWr1",
|
|
219
|
-
wechatClientId: "jdwoYRr82b6YcHC118QT0ITHF2oMpzgb",
|
|
220
|
-
hostedEmailPasswordlessClientId: "P7PJuBCXIHP41lcyty0NEb7Lgf7Zme8Q",
|
|
221
|
-
hostedSmsPasswordlessClientId: "P7PJuBCXIHP41lcyty0NEb7Lgf7Zme8Q",
|
|
222
|
-
hostedFarcasterClientId: "ff022117fbfe5103",
|
|
223
|
-
farcasterLoginDomain: "https://farcaster.web3auth.io",
|
|
224
|
-
authenticatorClientId: "QwRLdOCmMreICZf3tRGvAWu6l5lDRo88",
|
|
225
|
-
// tKey verifiers
|
|
226
|
-
googleVerifier: "tkey-google-lrc",
|
|
227
|
-
appleVerifier: "tkey-auth0-apple-lrc",
|
|
228
|
-
discordVerifier: "tkey-discord-lrc",
|
|
229
|
-
facebookVerifier: "tkey-facebook-lrc",
|
|
230
|
-
githubVerifier: "tkey-auth0-github-lrc",
|
|
231
|
-
kakaoVerifier: "tkey-auth0-kakao-lrc",
|
|
232
|
-
lineVerifier: "tkey-auth0-line-lrc",
|
|
233
|
-
linkedinVerifier: "tkey-auth0-linkedin-lrc",
|
|
234
|
-
redditVerifier: "tkey-reddit-lrc",
|
|
235
|
-
twitchVerifier: "tkey-twitch-lrc",
|
|
236
|
-
twitterVerifier: "tkey-auth0-twitter-lrc",
|
|
237
|
-
weiboVerifier: "tkey-auth0-weibo-lrc",
|
|
238
|
-
wechatVerifier: "tkey-auth0-wechat-lrc",
|
|
239
|
-
hostedEmailPasswordlessVerifier: "tkey-auth0-email-passwordless-lrc",
|
|
240
|
-
hostedSmsPasswordlessVerifier: "tkey-sms-passwordless-lrc",
|
|
241
|
-
passkeysVerifier: "passkey-legacy-testnet",
|
|
242
|
-
passkeysClientId: "passkey",
|
|
243
|
-
hostedFarcasterVerifier: "tkey-farcaster-auth-lrc",
|
|
244
|
-
authenticatorVerifier: "tkey-authenticator-lrc",
|
|
245
|
-
// wallet verifiers
|
|
246
|
-
walletGoogleVerifier: "google-lrc",
|
|
247
|
-
walletAppleVerifier: "torus-auth0-apple-lrc",
|
|
248
|
-
walletDiscordVerifier: "discord-lrc",
|
|
249
|
-
walletFacebookVerifier: "facebook-lrc",
|
|
250
|
-
walletGithubVerifier: "torus-auth0-github-lrc",
|
|
251
|
-
walletKakaoVerifier: "torus-auth0-kakao-lrc",
|
|
252
|
-
walletLineVerifier: "torus-auth0-line-lrc",
|
|
253
|
-
walletLinkedinVerifier: "torus-auth0-linkedin-lrc",
|
|
254
|
-
walletRedditVerifier: "reddit-lrc",
|
|
255
|
-
walletTwitchVerifier: "twitch-lrc",
|
|
256
|
-
walletTwitterVerifier: "torus-auth0-twitter-lrc",
|
|
257
|
-
walletWeiboVerifier: "torus-auth0-weibo-lrc",
|
|
258
|
-
walletWechatVerifier: "torus-auth0-wechat-lrc",
|
|
259
|
-
walletHostedEmailPasswordlessVerifier: "torus-auth0-email-passwordless-lrc",
|
|
260
|
-
walletHostedSmsPasswordlessVerifier: "torus-sms-passwordless-lrc",
|
|
261
|
-
// tkey verifier sub identifier
|
|
262
|
-
loginDomain: "https://torus-test.auth0.com",
|
|
263
|
-
verifierSubIdentifier: "torus",
|
|
264
|
-
metadataHost: constants.METADATA_MAP[auth.WEB3AUTH_NETWORK.TESTNET],
|
|
265
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.TESTNET]
|
|
266
|
-
},
|
|
267
|
-
[auth.WEB3AUTH_NETWORK.SAPPHIRE_DEVNET]: {
|
|
268
|
-
// client ids
|
|
269
|
-
googleClientId: "221898609709-qnfklddleh1m1m7bq6g8d8dakffp0n86.apps.googleusercontent.com",
|
|
270
|
-
appleClientId: "ADG0f0EZsBHvcbu2in7W938XngxJQJrJ",
|
|
271
|
-
discordClientId: "1126902533936394330",
|
|
272
|
-
facebookClientId: "226597929760394",
|
|
273
|
-
githubClientId: "srB1w8yWLtvD8QFqp4FgzAPHkmJ6FU5M",
|
|
274
|
-
kakaoClientId: "HlQEmgP1izbU0vB3GVI5NZcUbwPXdmsR",
|
|
275
|
-
lineClientId: "AUDHMShLlzzS15cb9F8IjYQHBbfWO5iB",
|
|
276
|
-
linkedinClientId: "gCzESkrR2LZDQS1gZIARcRzWvayFUWjv",
|
|
277
|
-
redditClientId: "XfiFWQbsZ9t5WQ4TfzHWZOpEghkNskko",
|
|
278
|
-
twitchClientId: "94nxxpy7inarina6kc9hyg2ao3mja2",
|
|
279
|
-
twitterClientId: "wz4w3pdutXsbmWltyUJjq1pyaoF0GBxW",
|
|
280
|
-
weiboClientId: "X3BSYMr3BVZFVls6XOEMZ4VdOTW58mQZ",
|
|
281
|
-
wechatClientId: "NSYFTvylXVlX6a4txGQaQ9cE9oU15QGU",
|
|
282
|
-
hostedEmailPasswordlessClientId: "d84f6xvbdV75VTGmHiMWfZLeSPk8M07C",
|
|
283
|
-
hostedSmsPasswordlessClientId: "4jK24VpfepWRSe5EMdd2if0RBD55pAuA",
|
|
284
|
-
hostedFarcasterClientId: "77c9e93ee43a5fb0",
|
|
285
|
-
farcasterLoginDomain: "https://farcaster.web3auth.io",
|
|
286
|
-
authenticatorClientId: "XiKrmltCKt6vEhz0c1a9gipzZHhppr01",
|
|
287
|
-
// tKey verifiers
|
|
288
|
-
googleVerifier: "web3auth-google-sapphire-devnet",
|
|
289
|
-
appleVerifier: "web3auth-auth0-apple-sapphire-devnet",
|
|
290
|
-
discordVerifier: "web3auth-discord-sapphire-devnet",
|
|
291
|
-
facebookVerifier: "web3auth-facebook-sapphire-devnet",
|
|
292
|
-
githubVerifier: "web3auth-auth0-github-sapphire-devnet",
|
|
293
|
-
kakaoVerifier: "web3auth-auth0-kakao-sapphire-devnet",
|
|
294
|
-
hostedFarcasterVerifier: "web3auth-farcaster-sapphire-devnet",
|
|
295
|
-
lineVerifier: "web3auth-auth0-line-sapphire-devnet",
|
|
296
|
-
linkedinVerifier: "web3auth-auth0-linkedin-sapphire-devnet",
|
|
297
|
-
redditVerifier: "web3auth-auth0-reddit-sapphire-devnet",
|
|
298
|
-
twitchVerifier: "web3auth-twitch-sapphire-devnet",
|
|
299
|
-
twitterVerifier: "web3auth-auth0-twitter-sapphire-devnet",
|
|
300
|
-
weiboVerifier: "web3auth-auth0-weibo-sapphire-devnet",
|
|
301
|
-
wechatVerifier: "web3auth-auth0-wechat-sapphire-devnet",
|
|
302
|
-
hostedEmailPasswordlessVerifier: "web3auth-auth0-email-passwordless-sapphire-devnet",
|
|
303
|
-
hostedSmsPasswordlessVerifier: "web3auth-auth0-sms-passwordless-sapphire-devnet",
|
|
304
|
-
passkeysVerifier: "passkey-sapphire-devnet",
|
|
305
|
-
passkeysClientId: "passkey",
|
|
306
|
-
authenticatorVerifier: "web3auth-authenticator-sapphire-devnet",
|
|
307
|
-
// tkey verifier sub identifier
|
|
308
|
-
loginDomain: "https://torus-test.auth0.com",
|
|
309
|
-
verifierSubIdentifier: "web3auth",
|
|
310
|
-
metadataHost: "",
|
|
311
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.SAPPHIRE_DEVNET] // used for allow host
|
|
312
|
-
},
|
|
313
|
-
[auth.WEB3AUTH_NETWORK.SAPPHIRE_MAINNET]: {
|
|
314
|
-
// client ids
|
|
315
|
-
googleClientId: "876733105116-gksnup3bm0nngpucmerrp9qrt15igcih.apps.googleusercontent.com",
|
|
316
|
-
appleClientId: "2ZsUMrUcXTIOIP9VwarKwEseBu7jnBvR",
|
|
317
|
-
discordClientId: "1135962294761824316",
|
|
318
|
-
facebookClientId: "599696922222388",
|
|
319
|
-
githubClientId: "cCaKDbd3U3qLK8Eh9lXFo5ZD59Lj4LLg",
|
|
320
|
-
kakaoClientId: "GlEDRR3FmvQ26nqiPddeqyqiz1VUpqNf",
|
|
321
|
-
lineClientId: "rkerdvKbiRk1NaJXE6diAQWG4ckdvENZ",
|
|
322
|
-
linkedinClientId: "HPdrWQqltA4HjJTvDTrbixTSk0BhtQUr",
|
|
323
|
-
redditClientId: "6jZCC08uyG54QVAqDFd8GxTNMbF1u7LG",
|
|
324
|
-
twitchClientId: "tl3sd6b61rm2jjjzatmvd4f6omw072",
|
|
325
|
-
twitterClientId: "ODXwxg9r4HOC5Af7odbQFjIEa5YxFhVG",
|
|
326
|
-
weiboClientId: "PJo40QUsFNF2KO0nwQ2Qgd16hfRWtw0R",
|
|
327
|
-
wechatClientId: "IiC2dvjR3BNpEEn9iwTrTUv4cQxctUsY",
|
|
328
|
-
hostedEmailPasswordlessClientId: "zz6FAnVObMSfLYAk5P3FmJZLZLBHj8uE",
|
|
329
|
-
hostedSmsPasswordlessClientId: "Mif51jk0HLQ0GpPiBmSIYqO6uPzcj18i",
|
|
330
|
-
hostedFarcasterClientId: "6df6481ef7891e18",
|
|
331
|
-
farcasterLoginDomain: "https://farcaster.web3auth.io",
|
|
332
|
-
authenticatorClientId: "K8hUbrEfBcFe2QkpFPxalw3u2OeNNHG0",
|
|
333
|
-
// tKey verifiers
|
|
334
|
-
googleVerifier: "web3auth-google-sapphire",
|
|
335
|
-
appleVerifier: "web3auth-auth0-apple-sapphire",
|
|
336
|
-
discordVerifier: "web3auth-discord-sapphire",
|
|
337
|
-
facebookVerifier: "web3auth-facebook-sapphire",
|
|
338
|
-
githubVerifier: "web3auth-auth0-github-sapphire",
|
|
339
|
-
kakaoVerifier: "web3auth-auth0-kakao-sapphire",
|
|
340
|
-
lineVerifier: "web3auth-auth0-line-sapphire",
|
|
341
|
-
linkedinVerifier: "web3auth-auth0-linkedin-sapphire",
|
|
342
|
-
redditVerifier: "web3auth-auth0-reddit-sapphire",
|
|
343
|
-
twitchVerifier: "web3auth-twitch-sapphire",
|
|
344
|
-
twitterVerifier: "web3auth-auth0-twitter-sapphire",
|
|
345
|
-
weiboVerifier: "web3auth-auth0-weibo-sapphire",
|
|
346
|
-
wechatVerifier: "web3auth-auth0-wechat-sapphire",
|
|
347
|
-
hostedEmailPasswordlessVerifier: "web3auth-auth0-email-passwordless-sapphire",
|
|
348
|
-
hostedSmsPasswordlessVerifier: "web3auth-auth0-sms-passwordless-sapphire",
|
|
349
|
-
passkeysVerifier: "passkey-sapphire-mainnet",
|
|
350
|
-
passkeysClientId: "passkey",
|
|
351
|
-
hostedFarcasterVerifier: "web3auth-farcaster-sapphire",
|
|
352
|
-
authenticatorVerifier: "web3auth-authenticator-sapphire",
|
|
353
|
-
// tkey verifier sub identifier
|
|
354
|
-
loginDomain: "https://torus.au.auth0.com",
|
|
355
|
-
verifierSubIdentifier: "web3auth",
|
|
356
|
-
metadataHost: "",
|
|
357
|
-
signerHost: constants.SIGNER_MAP[auth.WEB3AUTH_NETWORK.SAPPHIRE_MAINNET] // used for allow host
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
exports.configEnv = configEnv;
|