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

supabase / auth-js / 12896193447
71%

Build:
DEFAULT BRANCH: master
Ran 21 Jan 2025 09:29PM UTC
Jobs 2
Files 13
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

21 Jan 2025 09:27PM UTC coverage: 50.022% (+0.02%) from 50.0%
12896193447

push

github

web-flow
feat: consider session expired with margin on getSession() without auto refresh (#1027)

When `autoRefreshToken` is off (or when a tab is in the background) but
`getSession()` is called -- such as in an active Realtime channel,
`getSession()` might return a JWT which will expire while the message is
travelling over the internet. There is one confirmed case of this
happening.

This PR adjusts this using the established `EXPIRY_MARGIN_MS` constant
(which only applies on initial initialization of the client). The
constant's value is brought in line with the `autoRefreshToken` ticks
which run every 30 seconds and refreshing is attempted 3 ticks prior to
the session expiring.

This means that JWTs with an expiry value **less than 90s** will always
refresh the session; which is acceptable.

426 of 985 branches covered (43.25%)

Branch coverage included in aggregate %.

5 of 7 new or added lines in 2 files covered. (71.43%)

724 of 1314 relevant lines covered (55.1%)

38.28 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
41.82
-0.05% src/GoTrueClient.ts
Jobs
ID Job ID Ran Files Coverage
1 12896193447.1 21 Jan 2025 09:29PM UTC 13
50.02
GitHub Action Run
2 12896193447.2 21 Jan 2025 09:29PM UTC 13
50.02
GitHub Action Run
Source Files on build 12896193447
  • Tree
  • List 13
  • Changed 4
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 80f88e4b on github
  • Prev Build on master (#12727249677)
  • Next Build on master (#12934394860)
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

© 2026 Coveralls, Inc