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

supabase / supabase-py / 41648382876 / 5
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 01:56PM UTC
Files 43
Run time 1s
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:53PM UTC coverage: 98.503%. Remained the same
41648382876.5

push

github

web-flow
fix(auth): keep existing session when verify_otp does not return one (#1933)

## Why

`verify_otp()` cleared the stored session before sending the request. A
signed-in user who confirms the first link of a secure email change
(follow-up to #1845) was signed out, because that response carries no
session. The same happens when verification fails, for example with an
expired token. supabase-js does not clear the session in `verifyOtp`.

## What changed

- `verify_otp()` no longer removes the session before the request. A
returned session still replaces the stored one and emits `SIGNED_IN` or
`PASSWORD_RECOVERY` as before.
- Tests cover an existing session surviving a failed verification, a
bare user response, and the first secure email change confirmation, in
async and generated sync.

## Out of scope

The `sign_up`, `sign_in_with_*` and `sign_in_anonymously` methods still
clear the session before their request, unlike supabase-js.


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

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

## Summary by CodeRabbit

* **Bug Fixes**
* OTP verification no longer clears an existing session when
verification fails or when the response contains no session. Existing
session state is preserved without emitting an auth-state event.

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

2962 of 3007 relevant lines covered (98.5%)

0.99 hits per line

Source Files on job run-ubuntu-latest-3.11-storage - 41648382876.5
  • Tree
  • List 43
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41648382876
  • cae942dc on github
  • Prev Job for on main (#41646648796.16)
  • Next Job for on main (#41648463269.4)
  • 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