From 3d01201987b1dfe9b45ab2483c7ec54d06fe86ee Mon Sep 17 00:00:00 2001 From: Thorsten Schau Date: Tue, 21 Feb 2023 12:01:32 +0100 Subject: [PATCH] remove Github from login. --- .../o-onboarding/processes/loginWithTorus.ts | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/shell/src/dapps/o-onboarding/processes/loginWithTorus.ts b/shell/src/dapps/o-onboarding/processes/loginWithTorus.ts index d68a1a69c..e6d0dc45a 100644 --- a/shell/src/dapps/o-onboarding/processes/loginWithTorus.ts +++ b/shell/src/dapps/o-onboarding/processes/loginWithTorus.ts @@ -53,13 +53,6 @@ let loginOptions = [ class: "btn btn-outline", icon: "apple", }, - { - key: "github", - label: window.o.i18n("dapps.o-onboarding.processes.loginWithTorus.loginOptions.github.label"), - target: "#github", - class: "btn btn-outline", - icon: "github", - }, ]; const processDefinition = (processId: string) => @@ -189,13 +182,6 @@ const processDefinition = (processId: string) => class: "btn btn-outline", icon: "facebook", }, - { - key: "github", - label: window.o.i18n("dapps.o-onboarding.processes.loginWithTorus.loginOptions.github.label"), - target: "#github", - class: "btn btn-outline", - icon: "github", - }, ]), }), useMockProfile: { @@ -379,37 +365,6 @@ const processDefinition = (processId: string) => ], }, }, - github: { - id: "github", - invoke: { - src: async (context) => { - const openLogin = await getOpenLogin(); - const privateKey = await openLogin.login({ - loginProvider: "github", - }); - return { - privateKey: privateKey.privKey, - userInfo: await openLogin.getUserInfo(), - }; - }, - onDone: { - actions: "assignPrivateKeyAndUserInfoToContext", - target: "#enterEncryptionPin", - }, - onError: [ - { - // user closed popup - cond: (context, event) => event.data.message == "user closed popup", - target: "#chooseFlow", - }, - { - cond: (context, event) => (window.o.lastError = event.data), - actions: setWindowLastError, - target: "#showError", - }, - ], - }, - }, enterEncryptionPin: prompt({ id: "enterEncryptionPin",