Skip to content

feat(web3): atomic existing-user-only authentication (RFC) - #2916

Draft
RxVince wants to merge 2 commits into
supabase:masterfrom
RxVince:feat/web3-atomic-existing-user-only
Draft

RxVince wants to merge 2 commits into
supabase:masterfrom
RxVince:feat/web3-atomic-existing-user-only

Conversation

@RxVince

@RxVince RxVince commented Nov 8, 2026 •

Copy link
Copy Markdown

Summary

  • Add POST /web3/challenge and existing_user_only on the Web3 token grant for login without user creation.
  • Bind challenges to resolved identity/user snapshots; consume nonces inside the same transaction as session issuance.
  • Add migration, OpenAPI, design docs, RFC, and regression tests (including concurrency and hook rollback).

RFC / design discussion: #2915

Test plan

  • go test -p 1 -run '^(TestR8Web3ExistingOnly|TestWeb3|TestOtp|TestToken)$' on disposable Postgres (dev container)
  • go build / go vet on patched tree
  • Full upstream CI (make docker-test / race detector) — maintainer pipeline

Compatibility

  • Default Web3 grant unchanged (existing_user_only defaults to false).
  • Additive migration and API only.

Notes

This is a draft for maintainer review per CONTRIBUTING; feedback on naming, privacy, and SDK exposure is welcome before merge.

RxVince and others added 2 commits November 8, 2026 23:39
Introduce a challenge-bound Web3 grant branch that authenticates
pre-existing identities without user creation, with transactional
nonce consumption and regression tests for concurrency and rollback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant