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

supabase / supabase-js / 18190626006
80%

Build:
DEFAULT BRANCH: master
Ran 02 Oct 2025 10:42AM UTC
Jobs 16
Files 52
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

pending completion
18190626006

push

github

web-flow
feat(auth): add deprecation notice to `onAuthStateChange` with async function (#1580)

If you pass in an async function to `onAuthStateChange` and call a
Supabase Client API, it's very likely you'll end up with a deadlock.
Example:

```typescript
supabase.auth.onAuthStateChange(async () => {
  await supabase.auth.getClaims()
})
```

This is because:

- `onAuthStateChange` runs inside an exclusive lock
- If you call another API that tries to acquire the exclusive lock, the
initial call will never finish, thereby never releasing the first lock,
and no other Auth API can be called (across all tabs)

Multiple attempts were made to detect these situations but it's not easy
as async functions don't track execution context in all environments
properly.

This change adds a deprecation notice if the callback is an async
function to discourage folks from using it, and hopefully make it a bit
faster to realize why suddenly everything is frozen.

2035 of 2692 branches covered (75.59%)

Branch coverage included in aggregate %.

4066 of 4603 relevant lines covered (88.33%)

224.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18190626006.1 02 Oct 2025 10:42AM UTC 18
69.87
GitHub Action Run
2 auth-js - 18190626006.2 02 Oct 2025 10:47AM UTC 18
70.48
GitHub Action Run
3 node-20-macos-latest - 18190626006.3 02 Oct 2025 10:44AM UTC 7
95.45
GitHub Action Run
4 node-20-ubuntu-latest - 18190626006.4 02 Oct 2025 10:44AM UTC 7
95.45
GitHub Action Run
5 functions-js - 18190626006.5 02 Oct 2025 10:45AM UTC 3
90.91
GitHub Action Run
6 postgrest-js - 18190626006.6 02 Oct 2025 10:45AM UTC 9
96.79
GitHub Action Run
7 realtime-js - 18190626006.7 02 Oct 2025 10:45AM UTC 15
97.38
GitHub Action Run
8 node-20-windows-latest - 18190626006.8 02 Oct 2025 10:50AM UTC 7
95.45
GitHub Action Run
9 18190626006.9 02 Oct 2025 12:46PM UTC 18
69.87
GitHub Action Run
10 functions-js - 18190626006.10 02 Oct 2025 12:49PM UTC 3
90.91
GitHub Action Run
11 node-20-ubuntu-latest - 18190626006.11 02 Oct 2025 12:48PM UTC 7
95.45
GitHub Action Run
12 postgrest-js - 18190626006.12 02 Oct 2025 12:49PM UTC 9
96.79
GitHub Action Run
13 node-20-macos-latest - 18190626006.13 02 Oct 2025 12:49PM UTC 7
95.45
GitHub Action Run
14 auth-js - 18190626006.14 02 Oct 2025 12:52PM UTC 18
70.48
GitHub Action Run
15 realtime-js - 18190626006.15 02 Oct 2025 12:49PM UTC 15
97.38
GitHub Action Run
16 node-20-windows-latest - 18190626006.16 02 Oct 2025 12:52PM UTC 7
95.45
GitHub Action Run
Source Files on build 18190626006
  • Tree
  • List 52
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #18190626006
  • 87b997b8 on github
  • Prev Build on master (#18190527771)
  • Next Build on master (#18196084589)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc