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

supabase / supabase-flutter / 29003395872
87%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 08:05AM UTC
Jobs 8
Files 83
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

09 Jul 2026 08:01AM UTC coverage: 86.443% (+0.003%) from 86.44%
29003395872

push

github

web-flow
feat(gotrue): add channel parameter to mfa.challenge() (#1547)

## What

Adds an optional `channel` parameter (`sms` / `whatsapp`) to
`GoTrueMFAApi.challenge()` for phone factors, matching supabase-js.

```dart
await supabase.auth.mfa.challenge(
  factorId: factorId,
  channel: OtpChannel.whatsapp,
);
```

## Why

Parity gap tracked in `sdk-compliance.yaml` (`auth.mfa.challenge` was
`partially_implemented`): there was no way to pick the messaging channel
for phone MFA challenges, so it always used SMS.

## How

- Reuses the existing `OtpChannel` enum (already used by
`signInWithOtp`, `signUp`, `resend`) instead of introducing a new type.
- The parameter is nullable and only added to the request body when
provided, so when omitted the server's existing SMS default applies.
This keeps the change non-breaking; existing callers send the exact same
request as before.
- Updated `sdk-compliance.yaml` to mark `auth.mfa.challenge` as
`implemented`.

## Tests

Added `packages/gotrue/test/mfa_challenge_mock_test.dart` covering the
default (no channel), `whatsapp`, and `sms` cases via a mock HTTP client
that asserts the forwarded request body.

Resolves SDK-1260.

1 of 1 new or added line in 1 file covered. (100.0%)

4476 of 5178 relevant lines covered (86.44%)

4.03 hits per line

Jobs
ID Job ID Ran Files Coverage
6 gotrue - 29003395872.6 09 Jul 2026 08:08AM UTC 29
86.02
GitHub Action Run
7 supabase - 29003395872.7 09 Jul 2026 08:06AM UTC 15
80.69
GitHub Action Run
8 supabase_flutter - 29003395872.8 09 Jul 2026 08:05AM UTC 11
79.0
GitHub Action Run
3 storage_client - 28999966848.3 09 Jul 2026 07:01AM UTC 5
93.26
GitHub Action Run
4 postgrest - 28999966848.4 09 Jul 2026 07:01AM UTC 9
84.57
GitHub Action Run
5 functions_client - 28999966848.5 09 Jul 2026 06:59AM UTC 2
98.8
GitHub Action Run
2 realtime_client - 28999966848.2 09 Jul 2026 07:02AM UTC 11
89.06
GitHub Action Run
6 yet_another_json_isolate - 28999966848.6 09 Jul 2026 06:59AM UTC 1
77.78
GitHub Action Run
Source Files on build 29003395872
  • Tree
  • List 83
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29003395872
  • 3bde140e on github
  • Prev Build on main (#28999966848)
  • Next Build on main (#29006230524)
  • 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

© 2026 Coveralls, Inc