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

supabase / auth / 8465280121
69%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2024 09:42AM UTC
Jobs 1
Files 115
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

28 Mar 2024 09:37AM UTC coverage: 65.112% (-0.07%) from 65.185%
8465280121

push

github

web-flow
feat: forbid generating an access token without a session (#1504)

## What kind of change does this PR introduce?

Enforces the precondition of a valid session before one can create an
access token. This supports refactors around `generateAccessToken` and
`updateMFASessionAndClaims`. Also allows for stronger guarantees within
the function since one can always assume there is a valid session.

There were a few test changes:
- To mirror real world use, Access Tokens should now only exist where
there is a valid session. We wrap `generateAccessToken` into a helper
`generateAccessTokenAndSession` to replace previous occurrences where
session was set to nil.
- We split TestUpdatePassword into cases where reauthentication is
required and reauthentication is not required. We also attach a session
to two of the test cases as they were previously nil

6 of 11 new or added lines in 1 file covered. (54.55%)

17 existing lines in 4 files now uncovered.

8025 of 12325 relevant lines covered (65.11%)

59.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
73.86
-0.48% internal/api/token.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.86
-0.48% internal/api/token.go
2
80.0
10.0% internal/api/logout.go
6
79.19
-1.06% internal/models/user.go
8
41.25
-10.0% internal/api/reauthenticate.go
Jobs
ID Job ID Ran Files Coverage
1 8465280121.1 28 Mar 2024 09:42AM UTC 115
65.11
GitHub Action Run
Source Files on build 8465280121
  • Tree
  • List 115
  • Changed 24
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 795e93d0 on github
  • Prev Build on master (#8463291796)
  • Next Build on master (#8471241381)
  • Delete
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