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

supabase / supabase-py / 41648463269 / 17
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 01:57PM UTC
Files 17
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:53PM UTC coverage: 97.965%. Remained the same
41648463269.17

push

github

web-flow
fix(auth): keep existing session in sign-up and sign-in methods (#1935)

## Why

`sign_up`, `sign_in_with_password`, `sign_in_with_id_token`,
`sign_in_with_sso`, `sign_in_with_oauth`, `sign_in_with_otp` and
`sign_in_anonymously` called `_remove_session()` before sending their
request. A signed-in user was signed out even when the request failed or
returned no session: `sign_in_with_otp` only sends a code, `sign_up`
with email confirmation returns no session, and `sign_in_with_oauth` /
`sign_in_with_sso` only build a redirect URL. supabase-js does not clear
the session in any of these methods. A returned session replaces the
stored one when it is saved.

Resolves SDK-2685. Same change as #1933 for `verify_otp`.

## What changed

- Removed the pre-request `_remove_session()` calls from the seven
methods above, in both the async source and the generated sync client.
`_save_session` already replaces the stored session and the refresh
timer when a new session arrives.
- Added `tests/_async/test_sign_in_keeps_session.py` (and its generated
sync copy) using `httpx.MockTransport` and a pre-saved session. The
tests check that:
- an existing session survives a failed request for every method that
sends one
- an existing session survives a session-less response from `sign_up`,
`sign_in_with_sso`, `sign_in_with_otp` and `sign_in_with_oauth`
  - a returned session still replaces the old one and emits `SIGNED_IN`

1011 of 1032 relevant lines covered (97.97%)

0.98 hits per line

Source Files on job run-ubuntu-latest-3.15-realtime - 41648463269.17
  • Tree
  • List 17
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41648463269
  • c3fa0f19 on github
  • Prev Job for on main (#41648382876.25)
  • Next Job for on main (#41662624502.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