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

supabase / gotrue / 8257426419
65%

Build:
DEFAULT BRANCH: master
Ran 13 Mar 2024 12:25AM UTC
Jobs 1
Files 114
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

13 Mar 2024 12:20AM UTC coverage: 65.25% (+0.008%) from 65.242%
8257426419

push

github

web-flow
fix: impose expiry on auth code instead of magic link (#1440)

## What kind of change does this PR introduce?

Currently, we check for flow state expiry rather than auth code expiry.
The auth code is created at the point when `/magiclink` is called and
expiry starts from then. However, the auth code should probably start
expiring when the link is verified and the auth code is issued.

We can eventually extend this to other magic link like flows if need. 

Note that the Flow State expiry is capped at 24 hours, as that is when
the regular cleanup takes place. Considered adding a hard restriction on
the maximum validity of `GOTRUE_MAILER_OTP_EXP` but there are a handful
of projects which have it >86400.

The handful of existing projects (number on internal channel) with a OTP
expiry of longer than 24 hours will continue to have the expiry capped
at 24 hours when using PKCE. This should be the same as the current
behaviour since we aren't changing the cleanup duration.

---------

Co-authored-by: joel <joel@joels-MacBook-Pro.local>

12 of 16 new or added lines in 3 files covered. (75.0%)

1 existing line in 1 file now uncovered.

7828 of 11997 relevant lines covered (65.25%)

59.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8257426419.1 13 Mar 2024 12:25AM UTC 0
65.25
GitHub Action Run
Source Files on build 8257426419
Detailed source file information is not available for this build.
  • Back to Repo
  • 35aeaf1b on github
  • Prev Build on master (#8252456231)
  • Next Build on master (#8257704520)
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