Skip to content

Bump Sigma plugin to 0.0.101 and Better Auth 1.7 - #111

Closed
rohenaz wants to merge 3 commits into
omegafrom
cursor/sigma-plugin-0-0-101-b0fd
Closed

rohenaz wants to merge 3 commits into
omegafrom
cursor/sigma-plugin-0-0-101-b0fd

Conversation

@rohenaz

@rohenaz rohenaz commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Restores the Sigma Identity OAuth consumer on omega and bumps @sigma-auth/better-auth-plugin from the last local ^0.0.92 / Better Auth ^1.6.23 pairing to 0.0.101 + Better Auth ^1.7.

Why omega

GitHub default is still master (legacy Next 14 market). Integration / production is omega (this PR’s base). Modernization had removed the consumer; this puts it back on the current app shell.

Code

  • Direct deps: @sigma-auth/better-auth-plugin@0.0.101, better-auth@^1.7, zod
  • Overrides pin the same plugin/BA versions for @1sat/connect
  • Consumer only: sigmaClient + createCallbackHandler() (no sigmaProvider)
  • Routes: POST /api/auth/sigma/callback, /auth/sigma/callback, /auth/sigma/error
  • Client ID is read at sign-in time so install/typecheck/build pass without secrets
  • fflate override 0.8.3 so Verify bun audit is clean (GHSA-px8p-9vwx-vf98 on nested 0.8.2 / 0.6.10)

Vercel / env (names only — no values)

Project: OPL / 1sat-website (prj_04sgav3YwLHHttCVn4EjtetUJnEo). Live secret values were not pulled.

Name Visibility Action
NEXT_PUBLIC_SIGMA_AUTH_URL Public Set to https://auth.sigmaidentity.com if missing
NEXT_PUBLIC_SIGMA_CLIENT_ID Public Existing Sigma OAuth client id for this site
NEXT_PUBLIC_APP_URL Public Already present; used as redirect origin
SIGMA_ACCOUNT_PRIVATE_KEY Server Rename SIGMA_MEMBER_PRIVATE_KEY → this name. Same WIF. Every target that has MEMBER (Development, Preview, Production, omega).

No SIGMA_MEMBER_PRIVATE_KEY fallback, dual-read, or alias. After rename, delete the old MEMBER key. Register redirect {NEXT_PUBLIC_APP_URL}/auth/sigma/callback.

Do not use vercel env pull. List with vercel env ls --no-color.

Verification

bun install, bun audit, bun run lint, bunx tsc --noEmit, bun test tests/sigma-auth-env.test.ts tests/deployment-contract.test.ts, and bun run build all passed locally. Live Sigma OAuth was not exercised (no secrets in this environment).

Open in Web Open in Cursor 

Restore the Sigma OAuth consumer on omega against plugin 0.0.101 and Better Auth 1.7. Token exchange reads SIGMA_ACCOUNT_PRIVATE_KEY only; rename Vercel SIGMA_MEMBER_PRIVATE_KEY to that name with the same WIF.

Co-authored-by: Satchmo <rohenaz@users.noreply.github.com>
@vercel

vercel Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
1sat-website Ready Ready Preview Sep 5, 2026 4:20pm UTC

Request Review

Co-authored-by: Satchmo <rohenaz@users.noreply.github.com>
Override nested 0.8.2 / 0.6.10 copies that trip GHSA-px8p-9vwx-vf98 and fail Verify.

Co-authored-by: Satchmo <rohenaz@users.noreply.github.com>
@rohenaz

rohenaz commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing: wrong deployment surface.

1satwallet.com now deploys from opldotdev/1satwallet.com main on its own Vercel project (see that repo's docs/deployment.md). opldotdev/1sat-website:omega is historical only — not a merge or deploy target for the wallet.

This PR also re-adds Sigma host client bits the wallet deploy contract explicitly dropped. If Sigma login is needed on the wallet again, that belongs in opldotdev/1satwallet.com (likely via @1sat/connect), not here.

@rohenaz rohenaz closed this Sep 5, 2026

This branch was successfully deployed

1 active deployment
Preview — 4aa2635f Deployed Sep 5, 2026 by vercel[bot]
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.

2 participants