Giter Site home page Giter Site logo

Comments (11)

tombenj avatar tombenj commented on June 14, 2024 9

@AmauryM I'm getting this:

Failed to compile
src/Login/Login.tsx
Syntax error: Unexpected token, expected ";" (40:32)

  38 | 	}) => {
  39 | 		try {
> 40 | 			const signature = await web3!.eth.personal.sign(
     | 			                            ^
  41 | 				`I am signing my one-time nonce: ${nonce}`,
  42 | 				publicAddress,
  43 | 				'' // MetaMask will ignore the password argument here

from login-with-metamask.

amaury1093 avatar amaury1093 commented on June 14, 2024 1

Hey everyone, thanks for your interest in this project! I unfortunately will not have time to work on this issue in the near future, so I'm leaving it for the community. If anyone wants to explore what's going on here, please do!

from login-with-metamask.

q9f avatar q9f commented on June 14, 2024 1

The original issue is pretty vague, but I also stumbled across this today; mainly because MetaMask stopped injecting web3: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3

I raised a discussion on Stack Exchange because I cannot find any working reference of eth_personalSign in the latest version of MetaMask though: https://ethereum.stackexchange.com/questions/109472/how-to-authenticate-with-an-ethereum-account-through-personalsign - FYI.

I'm basically working on bringing Ethereum SSO to Rails but the MetaMask reference is still a bit spotty in that regard.

from login-with-metamask.

q9f avatar q9f commented on June 14, 2024 1

@q9f looks like you had a reply to your stack exchange. Does that help here?

Yes, I have completed an MVP using Rails and the new MetaMask API, you can check the README here: https://github.com/q9f/ethereum-on-rails#how-it-works and scroll down to "How it works"

I also "translated" the APIs in this ticket, that has the latest window.ethereum calls that work exactly like described in the tutorial by @AmauryM: q9f/omniauth-ethereum.rb#1 (Scroll down to "Frontend MVP"!)

from login-with-metamask.

amaury1093 avatar amaury1093 commented on June 14, 2024

I'm not 100% sure. Would you like to try and report back?

from login-with-metamask.

gotnull avatar gotnull commented on June 14, 2024

Any update on this?

from login-with-metamask.

lucaswjohnson avatar lucaswjohnson commented on June 14, 2024

@tombenj @gotnull @naddika I just connected to my metamask just fine without changing anything. Can you explain what you're doing to produce the error so I can reproduce it please?

from login-with-metamask.

steoniy avatar steoniy commented on June 14, 2024

@tombenj @gotnull @naddika I just connected to my metamask just fine without changing anything. Can you explain what you're doing to produce the error so I can reproduce it please?

I am experiencing same issue, just by running docker-compose up -d and trying to access localhost:3000

from login-with-metamask.

amaury1093 avatar amaury1093 commented on June 14, 2024

Please note that this might also be related to #174: I could run with yarn start, but the dockerfile didn't work.

from login-with-metamask.

sledmonkey avatar sledmonkey commented on June 14, 2024

@q9f looks like you had a reply to your stack exchange. Does that help here?

from login-with-metamask.

sledmonkey avatar sledmonkey commented on June 14, 2024

@tombenj @gotnull @naddika I just connected to my metamask just fine without changing anything. Can you explain what you're doing to produce the error so I can reproduce it please?

Not working for me either and getting same error as op. Have tried using docker-compose and docker run approaches (Readme 1 & 2).

Readme option 3 gives me a completely different error.
src/App/App.tsx Line 36:8: Avoid referencing unbound methods which may cause unintentional scoping of this @typescript-eslint/unbound-method

from login-with-metamask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.