@web3auth/modal 11.0.0-beta.1 → 11.0.0-beta.2
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/README.md +4 -0
- package/dist/lib.cjs/packages/modal/src/config.js +1 -1
- package/dist/lib.cjs/packages/modal/src/ui/config.js +3 -1
- package/dist/lib.cjs/packages/modal/src/ui/containers/Login/Login.js +3 -1
- package/dist/lib.esm/packages/modal/src/config.js +1 -1
- package/dist/lib.esm/packages/modal/src/ui/config.js +3 -1
- package/dist/lib.esm/packages/modal/src/ui/containers/Login/Login.js +3 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@ This package provides main class for using default Web3Auth Modal. The package i
|
|
|
11
11
|
|
|
12
12
|
Checkout the official [Web3Auth Documentation](https://web3auth.io/docs/sdk/web/web3auth/) to get started.
|
|
13
13
|
|
|
14
|
+
## ⚠️ Deprecations
|
|
15
|
+
|
|
16
|
+
- **Farcaster login is no longer supported.** The `farcaster` value of `AUTH_CONNECTION` is deprecated and has been removed from the modal's social-login picker. Any project configuration that still references `loginMethods.farcaster` will be rejected at modal initialization. If you previously relied on Farcaster login, please migrate to one of the other supported `AUTH_CONNECTION` values.
|
|
17
|
+
|
|
14
18
|
## 💡 Features
|
|
15
19
|
|
|
16
20
|
- Plug and Play, OAuth based Web3 Authentication Service
|
|
@@ -5,7 +5,9 @@ var auth = require('@web3auth/auth');
|
|
|
5
5
|
function capitalizeFirstLetter(string) {
|
|
6
6
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
7
7
|
}
|
|
8
|
-
const restrictedLoginMethods = new Set([auth.AUTH_CONNECTION.CUSTOM, auth.AUTH_CONNECTION.PASSKEYS, auth.AUTH_CONNECTION.TELEGRAM, auth.AUTH_CONNECTION.AUTHENTICATOR
|
|
8
|
+
const restrictedLoginMethods = new Set([auth.AUTH_CONNECTION.CUSTOM, auth.AUTH_CONNECTION.PASSKEYS, auth.AUTH_CONNECTION.TELEGRAM, auth.AUTH_CONNECTION.AUTHENTICATOR,
|
|
9
|
+
// Farcaster login is deprecated and no longer supported by the Web3Auth SDKs.
|
|
10
|
+
auth.AUTH_CONNECTION.FARCASTER]);
|
|
9
11
|
const AUTH_PROVIDERS = Object.values(auth.AUTH_CONNECTION).filter(x => !restrictedLoginMethods.has(x));
|
|
10
12
|
const AUTH_PROVIDERS_NAMES = AUTH_PROVIDERS.reduce((acc, x) => {
|
|
11
13
|
if (x === "email_passwordless") acc[x] = "Email";else if (x === "sms_passwordless") acc[x] = "Mobile";else acc[x] = capitalizeFirstLetter(x);
|
|
@@ -22,7 +22,9 @@ var utils = require('../../utils.js');
|
|
|
22
22
|
var LoginOtp = require('./LoginOtp/LoginOtp.js');
|
|
23
23
|
var LoginPasswordLess = require('./LoginPasswordLess/LoginPasswordLess.js');
|
|
24
24
|
|
|
25
|
-
const restrictedLoginMethods = [auth.AUTH_CONNECTION.SMS_PASSWORDLESS, auth.AUTH_CONNECTION.EMAIL_PASSWORDLESS, auth.AUTH_CONNECTION.AUTHENTICATOR, auth.AUTH_CONNECTION.PASSKEYS, auth.AUTH_CONNECTION.TELEGRAM, auth.AUTH_CONNECTION.CUSTOM
|
|
25
|
+
const restrictedLoginMethods = [auth.AUTH_CONNECTION.SMS_PASSWORDLESS, auth.AUTH_CONNECTION.EMAIL_PASSWORDLESS, auth.AUTH_CONNECTION.AUTHENTICATOR, auth.AUTH_CONNECTION.PASSKEYS, auth.AUTH_CONNECTION.TELEGRAM, auth.AUTH_CONNECTION.CUSTOM,
|
|
26
|
+
// Farcaster login is deprecated and no longer supported by the Web3Auth SDKs.
|
|
27
|
+
auth.AUTH_CONNECTION.FARCASTER];
|
|
26
28
|
function Login(props) {
|
|
27
29
|
const {
|
|
28
30
|
installedExternalWalletConfig,
|
|
@@ -3,7 +3,9 @@ import { AUTH_CONNECTION, BUILD_ENV } from '@web3auth/auth';
|
|
|
3
3
|
function capitalizeFirstLetter(string) {
|
|
4
4
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
5
5
|
}
|
|
6
|
-
const restrictedLoginMethods = new Set([AUTH_CONNECTION.CUSTOM, AUTH_CONNECTION.PASSKEYS, AUTH_CONNECTION.TELEGRAM, AUTH_CONNECTION.AUTHENTICATOR
|
|
6
|
+
const restrictedLoginMethods = new Set([AUTH_CONNECTION.CUSTOM, AUTH_CONNECTION.PASSKEYS, AUTH_CONNECTION.TELEGRAM, AUTH_CONNECTION.AUTHENTICATOR,
|
|
7
|
+
// Farcaster login is deprecated and no longer supported by the Web3Auth SDKs.
|
|
8
|
+
AUTH_CONNECTION.FARCASTER]);
|
|
7
9
|
const AUTH_PROVIDERS = Object.values(AUTH_CONNECTION).filter(x => !restrictedLoginMethods.has(x));
|
|
8
10
|
const AUTH_PROVIDERS_NAMES = AUTH_PROVIDERS.reduce((acc, x) => {
|
|
9
11
|
if (x === "email_passwordless") acc[x] = "Email";else if (x === "sms_passwordless") acc[x] = "Mobile";else acc[x] = capitalizeFirstLetter(x);
|
|
@@ -20,7 +20,9 @@ import LoginOtp from './LoginOtp/LoginOtp.js';
|
|
|
20
20
|
import LoginPasswordLess from './LoginPasswordLess/LoginPasswordLess.js';
|
|
21
21
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
22
22
|
|
|
23
|
-
const restrictedLoginMethods = [AUTH_CONNECTION.SMS_PASSWORDLESS, AUTH_CONNECTION.EMAIL_PASSWORDLESS, AUTH_CONNECTION.AUTHENTICATOR, AUTH_CONNECTION.PASSKEYS, AUTH_CONNECTION.TELEGRAM, AUTH_CONNECTION.CUSTOM
|
|
23
|
+
const restrictedLoginMethods = [AUTH_CONNECTION.SMS_PASSWORDLESS, AUTH_CONNECTION.EMAIL_PASSWORDLESS, AUTH_CONNECTION.AUTHENTICATOR, AUTH_CONNECTION.PASSKEYS, AUTH_CONNECTION.TELEGRAM, AUTH_CONNECTION.CUSTOM,
|
|
24
|
+
// Farcaster login is deprecated and no longer supported by the Web3Auth SDKs.
|
|
25
|
+
AUTH_CONNECTION.FARCASTER];
|
|
24
26
|
function Login(props) {
|
|
25
27
|
const {
|
|
26
28
|
installedExternalWalletConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web3auth/modal",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.2",
|
|
4
4
|
"description": "Multi chain wallet aggregator for web3Auth",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web3Auth/ui",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"@toruslabs/base-controllers": "^9.8.0",
|
|
93
93
|
"@toruslabs/http-helpers": "^9.0.0",
|
|
94
94
|
"@web3auth/auth": "^11.8.0",
|
|
95
|
-
"@web3auth/no-modal": "^11.0.0-beta.
|
|
96
|
-
"@web3auth/ws-embed": "^6.0.
|
|
95
|
+
"@web3auth/no-modal": "^11.0.0-beta.2",
|
|
96
|
+
"@web3auth/ws-embed": "^6.0.4",
|
|
97
97
|
"bowser": "^2.14.1",
|
|
98
98
|
"classnames": "^2.5.1",
|
|
99
99
|
"clsx": "^2.1.1",
|
|
@@ -250,5 +250,5 @@
|
|
|
250
250
|
"type": "git",
|
|
251
251
|
"url": "git+https://github.com/Web3Auth/Web3Auth.git"
|
|
252
252
|
},
|
|
253
|
-
"gitHead": "
|
|
253
|
+
"gitHead": "05577130ae9ced90ed412c1597681672074d8d2a"
|
|
254
254
|
}
|