diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/package.json b/package.json index 74e8468..37a793a 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ ], "main": "src/index.js", "dependencies": { - "@magic-ext/tezos": "^0.1.9", - "magic-sdk": "1.3.4", + "@magic-ext/tezos": "^14.0.0", + "magic-sdk": "^19.0.0", "react": "16.12.0", "react-dom": "16.12.0", "react-scripts": "3.0.1" diff --git a/src/App.js b/src/App.js index 2b02e66..5af298b 100644 --- a/src/App.js +++ b/src/App.js @@ -7,7 +7,7 @@ import { TezosExtension } from "@magic-ext/tezos"; const magic = new Magic("pk_live_C20A087BDF08A859", { extensions: { tezos: new TezosExtension({ - rpcUrl: "https://tezos-dev.cryptonomic-infra.tech:443/" + rpcUrl: "https://ghostnet.tezos.marigold.dev" }) } }); @@ -34,7 +34,7 @@ export default function App() { }, [isLoggedIn]); const login = async () => { - await magic.auth.loginWithMagicLink({ email }); + await magic.auth.loginWithEmailOTP({ email }); setIsLoggedIn(true); }; @@ -144,7 +144,7 @@ export default function App() {