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

supabase / auth / 18014087012
69%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2025 04:33PM UTC
Jobs 1
Files 166
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

25 Sep 2025 04:25PM UTC coverage: 67.633% (-0.1%) from 67.748%
18014087012

push

github

web-flow
feat: store latest challenge/attestation data (#2179)

## What kind of change does this PR introduce?

Feature - Store WebAuthn challenge data for customer verification
purposes

## What is the current behavior?

Currently, WebAuthn challenge data (attestation/assertion responses) is
not persisted after verification, making it impossible for customers to
review or audit the WebAuthn authentication details.

## What is the new behavior?

- Added `last_webauthn_challenge_data` JSONB column to `mfa_factors`
table to store the latest challenge verification data
- The system now stores the challenge, type (create/request), and parsed
credential response after successful WebAuthn verification, THEN deletes
the challenge like before.

## Additional context

The structure for the JSONb would be like so, based on whether it's a
`create` or `request` webauthn operation

```typescript
type LastWebAuthnChallengeData = {
    challenge: ChallengeData,
} & {
  type: "create"
  credential_response: ParsedCredentialCreationData
} | {
  type: "request"
  credential_response: ParsedCredentialAssertionData
}
```


---------

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>

4 of 46 new or added lines in 2 files covered. (8.7%)

13246 of 19585 relevant lines covered (67.63%)

65.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
11
57.71
-0.28% internal/api/mfa.go
31
57.23
-5.81% internal/models/factor.go
Jobs
ID Job ID Ran Files Coverage
1 18014087012.1 25 Sep 2025 04:33PM UTC 166
67.63
GitHub Action Run
Source Files on build 18014087012
  • Tree
  • List 166
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 01ebce1b on github
  • Prev Build on master (#17984690409)
  • Next Build on master (#18137474413)
  • 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