Skip to content

Commit

Permalink
Merge pull request #16 from Brillionfi/fix-metamask
Browse files Browse the repository at this point in the history
fix(): fix metamask
  • Loading branch information
Astrak authored Dec 6, 2024
2 parents 3b62a2f + b0b1ab0 commit 9f3bd67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brillionfi/waas-react-sdk",
"version": "1.0.14",
"version": "1.0.15",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down
11 changes: 11 additions & 0 deletions src/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ export const LoginForm = ({loginMethods, redirectUrl}: {loginMethods: LoginMetho
}
},
},
{
label: LoginMethods.Metamask,
icon: "ethereum" as TLocalIcons,
disabled: false,
onClick: async () => {
const url = await login(AuthProvider.METAMASK, redirectUrl);
if (url) {
window.location.href = url;
}
},
},
// TODO: prepare an email input window
// {
// label: "Continue-with Email",
Expand Down

0 comments on commit 9f3bd67

Please sign in to comment.