Skip to content

Commit c6c91ba

Browse files
- removes weibo login
- reorder login types
1 parent 5ce923f commit c6c91ba

File tree

6 files changed

+9
-18
lines changed

6 files changed

+9
-18
lines changed

examples/vue-app/src/App.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ import {
218218
SAPPHIRE_WEB3AUTH_CLIENT_ID,
219219
WEB3AUTH_EMAIL_PASSWORDLESS,
220220
WEB3AUTH_SMS_PASSWORDLESS,
221-
WEIBO,
222221
} from "./config";
223222
import { fetchLatestBlock, signEthMessage, signTypedData_v1 } from "./services/chainHandlers";
224223
@@ -297,7 +296,6 @@ const loginToConnectionMap = computed((): Record<string, Record<string, string |
297296
[GITHUB]: { domain: AUTH_DOMAIN },
298297
[LINKEDIN]: { domain: AUTH_DOMAIN },
299298
[TWITTER]: { domain: AUTH_DOMAIN },
300-
[WEIBO]: { domain: AUTH_DOMAIN },
301299
[LINE]: { domain: AUTH_DOMAIN },
302300
[COGNITO]: { domain: COGNITO_AUTH_DOMAIN, identity_provider: "Google", response_type: "token", user_info_endpoint: "userInfo" },
303301
[REDDIT]: { domain: AUTH_DOMAIN, connection: "Reddit", userIdField: "name", isUserIdCaseSensitive: false },

examples/vue-app/src/config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const GITHUB = "github";
1111
export const APPLE = "apple";
1212
export const LINKEDIN = "linkedin";
1313
export const TWITTER = "twitter";
14-
export const WEIBO = "weibo";
1514
export const LINE = "line";
1615
export const EMAIL_PASSWORD = "email_password";
1716
export const PASSKEYS_LOGIN = "passkeys_login";
@@ -53,7 +52,6 @@ export const testnetVerifierMap = {
5352
[GITHUB]: { name: "Github", typeOfLogin: "github", clientId: "PC2a4tfNRvXbT48t89J5am0oFM21Nxff", verifier: "torus-auth0-github-lrc" },
5453
[LINKEDIN]: { name: "Linkedin", typeOfLogin: "linkedin", clientId: "59YxSgx79Vl3Wi7tQUBqQTRTxWroTuoc", verifier: "torus-auth0-linkedin-lrc" },
5554
[TWITTER]: { name: "Twitter", typeOfLogin: "twitter", clientId: "A7H8kkcmyFRlusJQ9dZiqBLraG2yWIsO", verifier: "torus-auth0-twitter-lrc" },
56-
[WEIBO]: { name: "Weibo", typeOfLogin: "weibo", clientId: "dhFGlWQMoACOI5oS5A1jFglp772OAWr1", verifier: "torus-auth0-weibo-lrc" },
5755
[LINE]: { name: "Line", typeOfLogin: "line", clientId: "WN8bOmXKNRH1Gs8k475glfBP5gDZr9H1", verifier: "torus-auth0-line-lrc" },
5856
[WEB3AUTH_EMAIL_PASSWORDLESS]: {
5957
name: "Web3Auth Email Passwordless",
@@ -110,7 +108,6 @@ export const sapphireDevnetVerifierMap = {
110108
clientId: "wz4w3pdutXsbmWltyUJjq1pyaoF0GBxW",
111109
verifier: "web3auth-auth0-twitter-sapphire-devnet",
112110
},
113-
[WEIBO]: { name: "Weibo", typeOfLogin: "weibo", clientId: "X3BSYMr3BVZFVls6XOEMZ4VdOTW58mQZ", verifier: "web3auth-auth0-weibo-sapphire-devnet" },
114111
[LINE]: { name: "Line", typeOfLogin: "line", clientId: "AUDHMShLlzzS15cb9F8IjYQHBbfWO5iB", verifier: "web3auth-auth0-line-sapphire-devnet" },
115112
[WEB3AUTH_EMAIL_PASSWORDLESS]: {
116113
name: "Web3Auth Email Passwordless",

src/handlers/HandlerFactory.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const createHandler = (params: CreateHandlerParams): ILoginHandler => {
3535
case AUTH_CONNECTION.GITHUB:
3636
case AUTH_CONNECTION.LINKEDIN:
3737
case AUTH_CONNECTION.TWITTER:
38-
case AUTH_CONNECTION.WEIBO:
3938
case AUTH_CONNECTION.LINE:
4039
case AUTH_CONNECTION.CUSTOM:
4140
case AUTH_CONNECTION.REDDIT:

src/utils/enums.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
export const AUTH_CONNECTION = {
22
// start - byoa
33
GOOGLE: "google",
4-
TELEGRAM: "telegram",
4+
TWITTER: "twitter",
55
FACEBOOK: "facebook",
6-
REDDIT: "reddit",
76
DISCORD: "discord",
8-
TWITCH: "twitch",
7+
FARCASTER: "farcaster",
98
APPLE: "apple",
109
GITHUB: "github",
11-
LINKEDIN: "linkedin",
12-
TWITTER: "twitter",
13-
WEIBO: "weibo",
10+
REDDIT: "reddit",
1411
LINE: "line",
15-
EMAIL_PASSWORDLESS: "email_passwordless",
16-
SMS_PASSWORDLESS: "sms_passwordless",
1712
KAKAO: "kakao",
13+
LINKEDIN: "linkedin",
14+
TWITCH: "twitch",
15+
TELEGRAM: "telegram",
1816
WECHAT: "wechat",
19-
FARCASTER: "farcaster",
17+
EMAIL_PASSWORDLESS: "email_passwordless",
18+
SMS_PASSWORDLESS: "sms_passwordless",
2019
// end - byoa
2120
CUSTOM: "custom",
2221
PASSKEYS: "passkeys",

src/utils/helpers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export const loginToConnectionMap: Record<string, string> = {
3232
[AUTH_CONNECTION.GITHUB]: "github",
3333
[AUTH_CONNECTION.LINKEDIN]: "linkedin",
3434
[AUTH_CONNECTION.TWITTER]: "twitter",
35-
[AUTH_CONNECTION.WEIBO]: "weibo",
3635
[AUTH_CONNECTION.LINE]: "line",
3736
[AUTH_CONNECTION.EMAIL_PASSWORDLESS]: "email",
3837
[AUTH_CONNECTION.SMS_PASSWORDLESS]: "sms",
@@ -68,7 +67,6 @@ export const getUserId = (
6867
case AUTH_CONNECTION.SMS_PASSWORDLESS:
6968
case AUTH_CONNECTION.AUTHENTICATOR:
7069
return caseSensitiveField(name, isUserIdCaseSensitive);
71-
case AUTH_CONNECTION.WEIBO:
7270
case AUTH_CONNECTION.GITHUB:
7371
case AUTH_CONNECTION.TWITTER:
7472
case AUTH_CONNECTION.APPLE:

src/utils/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export interface RedirectResult {
389389
args: CustomAuthLoginParams;
390390
}
391391

392-
export type AUTH0_CONNECTION_TYPE = "apple" | "github" | "linkedin" | "twitter" | "weibo" | "line";
392+
export type AUTH0_CONNECTION_TYPE = "apple" | "github" | "linkedin" | "twitter" | "line";
393393

394394
export type VerifierParams = {
395395
verify_params?: {

0 commit comments

Comments
 (0)