Skip to content

Commit

Permalink
Merge pull request #109 from CirclesUBI/feature/app-10-10604-remove-g…
Browse files Browse the repository at this point in the history
…ithub-after-staging12

remove Github from login.
  • Loading branch information
codeho authored Feb 21, 2023
2 parents e85fdae + 3d01201 commit f73cfb7
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions shell/src/dapps/o-onboarding/processes/loginWithTorus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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<LoginWithTorusContext, any>({
id: "enterEncryptionPin",
Expand Down

0 comments on commit f73cfb7

Please sign in to comment.