Skip to content

fix: secure Telegram account changes and release 3.2.2 - #61

Merged
vcode-sh merged 1 commit into
mainfrom
fix/telegram-auth-3.2.2
Nov 5, 2026
Merged

vcode-sh merged 1 commit into
mainfrom
fix/telegram-auth-3.2.2

Conversation

@vcode-sh

@vcode-sh vcode-sh commented Nov 5, 2026

Copy link
Copy Markdown
Owner

What fresh chaos is this?

Telegram account changes now recheck the live session instead of trusting a cached cookie. OIDC sign-in also verifies that its account still belongs to the original user after application hooks, including hooks that change a newly created binding.

This prepares 3.2.2, fixes the generated client's POST unlink method and widget initialization with global throwing fetch options, and explains the latest #53 follow-up. Server-owned user fields are creation snapshots; the tested session-fields example refreshes claims on each accepted sign-in without enabling client edits or requiring customSession.

Upgrade note: Better Auth and @better-auth/core must be upgraded together to >=1.7.17 <1.8.0 for upstream OAuth linking/session fixes. No plugin schema migration is needed. The changelog credits the reporter of #53.

Nature of the beast

  • Bug fix
  • Dependency requirement update
  • Documentation update

The bare minimum

  • Default tests and coverage gate pass: 367 tests
  • Source and built consumer types pass
  • Lint passes
  • Changed behavior has meaningful regression protection
  • Docs and human-friendly 3.2.2 changelog updated
  • Build, publint, Are The Types Wrong and installed ESM/CommonJS package checks pass

Proof of life

  • Six new-binding mutation cases failed before the final review fix and pass afterward. They cover owner, account key and provider changes in OIDC-only and mixed configurations, without blocking unrelated sessions created by application hooks.
  • Real Telegram OIDC, Login Widget and Mini App flows were exercised on a physical Android phone, including JWT fields, rejected edits, logout and revoked-session/account denials. The subsequent binding-guard delta was checked at the real Better Auth integration boundary; the live report identifies the exact evidence scope.
  • Runtime dependency audit reports zero vulnerabilities. CI will run the complete Node/Bun and real-database adapter matrix on this head.
  • Private recordings, credentials and local evidence are excluded from Git; the committed acceptance harness and reports are reusable.

Relevant wreckage

Follow-up to #53.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T10:42:03.271356Z 84c4d12 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vcode-sh
vcode-sh merged commit 69146e6 into main Nov 5, 2026
10 checks passed
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