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

supabase / supabase-py / 43227923044
98%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 01:30PM UTC
Jobs 35
Files 134
Run time 1min
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

12 Nov 2026 01:30PM UTC coverage: 97.71% (+0.3%) from 97.417%
43227923044

push

github

web-flow
feat(auth): support concurrent pkce flows with a flow id (#2040)

Resolves SDK-1392. Closes #1560.

## What

Several PKCE flows can now be pending at the same time. Before, every
flow stored its code verifier under one key,
`<storage_key>-code-verifier`. Starting a second flow overwrote the
first flow's verifier, so the first flow could no longer be completed.
This happened, for example, with two OAuth sign-ins in different tabs,
or a sign-in started while a password reset email was still unanswered.

This implements the
[`auth.sign_in.concurrent_pkce_flows`](https://github.com/supabase/sdk/blob/main/packages/capability-matrix/specs/auth/sign_in/concurrent_pkce_flows.md)
spec, including the optional flow id in redirect URLs.

```python
supabase = create_client(url, key, auth=AuthClientOptions(append_flow_id_to_redirects=True))

# In the callback:
supabase.auth.exchange_code_for_session(query["code"], flow_id=query.get("sb_flow_id"))
```

## API

- `OAuthResponse.flow_id` and `SSOResponse.flow_id`: the id of the flow
the call started. It is `None` with the implicit flow.
`sign_in_with_oauth`, `link_identity` and `sign_in_with_sso` return it.
- `exchange_code_for_session(auth_code, *, flow_id=None,
code_verifier=None, redirect_to=None)`: with `flow_id`, only that flow's
verifier is used. Without it, the most recently started flow that is
still pending is used, so existing callers keep working.
- `append_flow_id_to_redirects`, on `AuthClientOptions` and on the
`AsyncSupabaseAuthClient` and `SyncSupabaseAuthClient` constructors:
every PKCE flow adds its flow id to the redirect URL it is given
(`redirect_to` or `email_redirect_to`) as the `sb_flow_id` query
parameter. This covers OAuth, identity linking, SSO, magic link and OTP,
sign-up, email confirmation resends, password reset and email change.
The callback passes the parameter on as `flow_id`. This is the only way
to tell apart flows that are completed from an email link, since those
calls cannot retur... (continued)

13654 of 13974 relevant lines covered (97.71%)

5.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
86
88.13
7.46% src/supabase_auth/client.py
13
97.38
0.02% src/supabase_auth/types.py
6
97.77
0.0% src/supabase/client.py
1
99.77
-0.23% tests/_async/test_pkce_code_challenge.py
1
99.77
-0.23% tests/_sync/test_pkce_code_challenge.py
Jobs
ID Job ID Ran Files Coverage
1 supabase-py3.13-highest - 43227923044.1 12 Nov 2026 01:30PM UTC 20
99.32
GitHub Action Run
2 realtime-py3.12-highest - 43227923044.2 12 Nov 2026 01:31PM UTC 10
97.51
GitHub Action Run
3 functions-py3.13-highest - 43227923044.3 12 Nov 2026 01:30PM UTC 14
99.12
GitHub Action Run
4 storage-py3.14-highest - 43227923044.4 12 Nov 2026 01:32PM UTC 24
95.99
GitHub Action Run
5 utils-py3.12-highest - 43227923044.5 12 Nov 2026 01:31PM UTC 24
99.67
GitHub Action Run
6 utils-py3.14-highest - 43227923044.6 12 Nov 2026 01:30PM UTC 24
99.66
GitHub Action Run
7 utils-py3.15-highest - 43227923044.7 12 Nov 2026 01:31PM UTC 24
99.66
GitHub Action Run
8 postgrest-py3.13-highest - 43227923044.8 12 Nov 2026 01:32PM UTC 29
98.45
GitHub Action Run
9 supabase-py3.15-highest - 43227923044.9 12 Nov 2026 01:32PM UTC 20
99.32
GitHub Action Run
10 storage-py3.12-lowest-direct - 43227923044.10 12 Nov 2026 01:31PM UTC 24
95.99
GitHub Action Run
11 supabase-py3.12-highest - 43227923044.11 12 Nov 2026 01:30PM UTC 20
99.32
GitHub Action Run
12 utils-py3.12-lowest-direct - 43227923044.12 12 Nov 2026 01:31PM UTC 24
99.67
GitHub Action Run
13 functions-py3.14-highest - 43227923044.13 12 Nov 2026 01:30PM UTC 14
99.12
GitHub Action Run
14 auth-py3.14-highest - 43227923044.14 12 Nov 2026 01:32PM UTC 43
96.77
GitHub Action Run
15 functions-py3.12-lowest-direct - 43227923044.15 12 Nov 2026 01:30PM UTC 14
99.12
GitHub Action Run
16 storage-py3.12-highest - 43227923044.16 12 Nov 2026 01:31PM UTC 24
95.99
GitHub Action Run
17 auth-py3.15-highest - 43227923044.17 12 Nov 2026 01:32PM UTC 43
96.77
GitHub Action Run
18 realtime-py3.14-highest - 43227923044.18 12 Nov 2026 01:31PM UTC 10
97.27
GitHub Action Run
19 storage-py3.15-highest - 43227923044.19 12 Nov 2026 01:32PM UTC 24
95.99
GitHub Action Run
20 utils-py3.13-highest - 43227923044.20 12 Nov 2026 01:31PM UTC 24
99.67
GitHub Action Run
21 auth-py3.12-highest - 43227923044.21 12 Nov 2026 01:32PM UTC 43
96.77
GitHub Action Run
22 postgrest-py3.14-highest - 43227923044.22 12 Nov 2026 01:32PM UTC 29
98.45
GitHub Action Run
23 postgrest-py3.12-lowest-direct - 43227923044.23 12 Nov 2026 01:32PM UTC 29
98.45
GitHub Action Run
24 postgrest-py3.12-highest - 43227923044.24 12 Nov 2026 01:32PM UTC 29
98.45
GitHub Action Run
25 functions-py3.15-highest - 43227923044.25 12 Nov 2026 01:30PM UTC 14
99.12
GitHub Action Run
26 auth-py3.12-lowest-direct - 43227923044.26 12 Nov 2026 01:32PM UTC 43
96.77
GitHub Action Run
27 functions-py3.12-highest - 43227923044.27 12 Nov 2026 01:30PM UTC 14
99.12
GitHub Action Run
28 auth-py3.13-highest - 43227923044.28 12 Nov 2026 01:32PM UTC 43
96.77
GitHub Action Run
29 realtime-py3.13-highest - 43227923044.29 12 Nov 2026 01:31PM UTC 10
97.51
GitHub Action Run
30 postgrest-py3.15-highest - 43227923044.30 12 Nov 2026 01:32PM UTC 29
98.45
GitHub Action Run
31 realtime-py3.15-highest - 43227923044.31 12 Nov 2026 01:32PM UTC 10
97.27
GitHub Action Run
32 supabase-py3.14-highest - 43227923044.32 12 Nov 2026 01:30PM UTC 20
99.32
GitHub Action Run
33 realtime-py3.12-lowest-direct - 43227923044.33 12 Nov 2026 01:31PM UTC 10
97.51
GitHub Action Run
34 storage-py3.13-highest - 43227923044.34 12 Nov 2026 01:31PM UTC 24
95.99
GitHub Action Run
35 supabase-py3.12-lowest-direct - 43227923044.35 12 Nov 2026 01:30PM UTC 20
99.32
GitHub Action Run
Source Files on build 43227923044
  • Tree
  • List 134
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43227923044
  • ebe069ce on github
  • Prev Build on main (#43046355847)
  • Next Build on main (#43229511406)
  • 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