feat(auth): Sign-in with Ethereum for Better Auth
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- github, mongodb, next.js, typescript
- Domínio
- authentication, backend
Direção de pesquisa
Start with frontend/src/features/auth/server/auth.ts and the sign-in components under features/auth/components; first verify whether Better Auth provides a SIWE plugin and read its API. Trace how the existing email OTP flow and MongoDB adapter handle accounts and sessions, then check compatibility with the signed assertion bridge on feat/toju-agent-storage. Done means wallet linking and unlinking work, replayed or invalid SIWE messages are rejected, and proxy/session behavior remains unchanged.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Add wallet-based sign-in (EIP-4361) alongside the existing email OTP flow, optionally pulling the user's ENS name and avatar into the profile.
Motivation
Crypto-native users expect to sign in with their wallet, and it ties account identity to the addresses used for payments and agents.
Current state in this repo
frontend/src/features/auth/server/auth.tsconfigures Better Auth with the MongoDB adapter, email-OTP and Next cookies; sign-in forms are underfeatures/auth/components.
Proposal
- Add a SIWE flow (nonce, message, signature verification) if Better Auth provides a plugin; otherwise implement a small custom plugin.
- Link a wallet address to an existing account (verified by signature) rather than creating duplicate accounts.
- Optional: show ENS name/avatar from the ENS issue's resolution helper.
Acceptance criteria
- Nonces are single-use and expire; replayed signatures are rejected.
- Domain, chain id and expiry in the SIWE message are validated.
- A user can link and unlink a wallet; the proxy/session behaviour is unchanged.
Out of scope
- Replacing email OTP.
Technical notes and risks
- Backend identity for agent endpoints uses a different mechanism on
feat/toju-agent-storage(signed assertion bridge); keep the two flows compatible.
Verify before implementing
- Whether Better Auth currently ships a SIWE plugin and its API.
References
- EIP-4361 Sign-In with Ethereum: https://eips.ethereum.org/EIPS/eip-4361
Part of ##1. Ground rules for all issues in this roadmap are listed there (testnet-first, no secrets in the repo, chain logic behind the registry, tests and docs with every PR).
- Linguagem predominante
- Python
- Estrelas
- 2
- Forks
- 4
- Merge médio
- 5h 19min
- PRs com merge (30d)
- 11
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de QMeshPy/distributed-quantum
-
enhancement good first issue helia storage tier-1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
QMeshPy/distributed-quantum#53 ·
Mantenedores costumam responder em até 1 dia
-
chain-integration enhancement payments research-spike tier-2
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
QMeshPy/distributed-quantum#78 ·
Mantenedores costumam responder em até 1 dia
-
chain-integration enhancement payments research-spike tier-2
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 66/100
QMeshPy/distributed-quantum#77 ·
Mantenedores costumam responder em até 1 dia
-
chain-integration enhancement payments tier-2
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
QMeshPy/distributed-quantum#76 ·
Mantenedores costumam responder em até 1 dia
-
documentation good first issue kubo storage tier-1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 42/100
QMeshPy/distributed-quantum#75 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de QMeshPy/distributed-quantum
Issues semelhantes
-
Python Volcengine provider returns failures instead of raising themTalvez já em andamento @Ricardo-M-L assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
agent-infra/sandbox#248 ·
-
Textractor leaves empty temporary files when remote retrieval failsTalvez já em andamento @HuaTNA assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
test(bm_generation): pin the learning parameters and CPU sync shortcutTalvez já em andamento @iloveeyjafjalla assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
qboson/kaiwu-pytorch-plugin#1341 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
elder-plinius/V3R1T4S#625 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
foxglove/mcap#1907 · 1 comentário ·
Mantenedores costumam responder em até 1 dia