Comments (11)
@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.
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.
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 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.
I'm not 100% sure. Would you like to try and report back?
from login-with-metamask.
Any update on this?
from login-with-metamask.
@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.
@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.
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.
@q9f looks like you had a reply to your stack exchange. Does that help here?
from login-with-metamask.
@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)
- {error: "Signature verification failed"} HOT 9
- Unable to access DB on Windows HOT 4
- Add `ethereum.enable()` HOT 1
- Installing in cpanel HOT 1
- Won't work in Opera HOT 4
- Use React hooks HOT 1
- `TypeError: Failed to fetch` when trying to login with MetaMask HOT 3
- Unable to compile HOT 1
- I am unable to run this HOT 1
- package express-jwt now requires algorithms explicitly set. HOT 1
- Improve code quality by adding eslint rules
- Fix frontend Dockerfile HOT 5
- backend server throwing the error " cannot /get"
- Not working in Android metamask browser HOT 1
- Problem with running the demo HOT 3
- JWT Cookie for auth HOT 1
- Trouble locating the database so I can add token check HOT 1
- return User.findAll(whereClause) Fails with TSError: ⨯ Unable to compile TypeScript: When I remove Docker Files
- how to create in android kotlin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from login-with-metamask.