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

supabase / supabase-flutter / 29003395872 / 6
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 08:09AM UTC
Files 29
Run time 1s
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.024% (+0.007%) from 86.017%
29003395872.6

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.

1668 of 1939 relevant lines covered (86.02%)

4.7 hits per line

Source Files on job gotrue - 29003395872.6
  • Tree
  • List 29
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29003395872
  • 3bde140e on github
  • Prev Job for on main (#28999966848.1)
  • Next Job for 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