feat: support MetaMask provider (#2084)

* feat: add metamask provider

* feat: add eth login

* feat: check eth sign

* feat: finish metamask signin/signup

* feat: support MetaMask provider link/unlink

* feat: update web/craco.config.js to handle polyfill

* feat: gofumpt idp/metamask.go

* feat: update MetaMask logo path

* feat: support MetaMask avatar
This commit is contained in:
haiwu
2023-07-20 17:51:36 +08:00
committed by GitHub
parent f923a8f0d7
commit d7110ff8bf
32 changed files with 548 additions and 38 deletions

View File

@ -110,7 +110,7 @@ class ProviderTable extends React.Component {
key: "canSignUp",
width: "120px",
render: (text, record, index) => {
if (record.provider?.category !== "OAuth") {
if (!["OAuth", "Web3"].includes(record.provider?.category)) {
return null;
}
@ -127,7 +127,7 @@ class ProviderTable extends React.Component {
key: "canSignIn",
width: "120px",
render: (text, record, index) => {
if (record.provider?.category !== "OAuth") {
if (!["OAuth", "Web3"].includes(record.provider?.category)) {
return null;
}
@ -144,7 +144,7 @@ class ProviderTable extends React.Component {
key: "canUnlink",
width: "120px",
render: (text, record, index) => {
if (record.provider?.category !== "OAuth") {
if (!["OAuth", "Web3"].includes(record.provider?.category)) {
return null;
}
@ -161,7 +161,7 @@ class ProviderTable extends React.Component {
key: "prompted",
width: "120px",
render: (text, record, index) => {
if (record.provider?.category !== "OAuth") {
if (!["OAuth", "Web3"].includes(record.provider?.category)) {
return null;
}