• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41644902937 / 11
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 01:33PM UTC
Files 42
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2026 01:30PM UTC coverage: 96.094%. Remained the same
41644902937.11

push

github

web-flow
fix(auth): accept pending secure email confirmations (#1845)

## Why

Auth accepts the first secure email-change confirmation without issuing
a session, but `verify_otp()` tries to parse that response as a Session
or User and raises `ValidationError`.

Fixes #1843.

## What changed

- Recognize the server's first-confirmation success marker inside
`verify_otp()` and return the existing empty `AuthResponse`.
- Cover first confirmation, final session, bare user, and unrelated
malformed responses in async and generated sync tests.

## Scope

This covers the successful first email-change confirmation. The shared
parser and existing pre-request session removal are outside this fix.

## Verification

- `cd src/auth && uv run --frozen --package supabase_auth pytest -q`
passed all 217 tests against local Auth services. The new tests had four
failures and ten passing controls on clean upstream, then all 14 passed
after the fix.
- A real local Auth v2.187.0 two-address email change failed on
upstream's first HTTP 200 response. The fix accepted that response, then
the second confirmation returned a session and emitted `SIGNED_IN` once.
The 14 focused tests also passed on Python 3.9.18.
- Sync generation, `make ruff`, package mypy, Ruff lint/format, package
build, and `git diff --check` passed.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Secure email-change confirmations are now handled without being
mistaken for a sign-in, preventing unintended session changes or
authentication events.
* OTP verification continues to process responses that include user or
session information and report invalid responses appropriately.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

2706 of 2816 relevant lines covered (96.09%)

0.96 hits per line

Source Files on job run-ubuntu-latest-3.11-storage - 41644902937.11
  • Tree
  • List 42
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41644902937
  • 1e0c2622 on github
  • Prev Job for on main (#41643835757.21)
  • Next Job for on main (#41644999038.18)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc