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

supabase / supabase-flutter / 27603730747
85%

Build:
DEFAULT BRANCH: main
Ran 16 Jun 2026 08:13AM UTC
Jobs 8
Files 76
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

16 Jun 2026 08:11AM UTC coverage: 85.708% (+0.5%) from 85.194%
27603730747

push

github

web-flow
fix(gotrue): support asymmetric JWTs in getClaims (#1410)

## What

`getClaims` built the JWT verification key by passing the JWK JSON to a
DER parser (`RSAPublicKey.bytes`), which threw
`UnsupportedASN1TagException` for asymmetric signing keys. It now uses
`JWTKey.fromJWK`, which builds the key from the JWK parameters and
supports both RSA and EC keys.

## Why

Projects using asymmetric JWT signing keys (RS256/ES256, the default for
new Supabase projects) could not use `getClaims` for local verification.
The previous symmetric (HS256) setups masked the bug because those
tokens fall back to `getUser` and never reach the asymmetric path.

## Changes

- Replace the `JWK.rsaPublicKey` getter with a `JWK.publicKey` getter
backed by `JWTKey.fromJWK` (supports RSA and EC).
- Bump `dart_jsonwebtoken` to `^3.1.0`, the first version that provides
`JWTKey.fromJWK`.
- Add `jwk_test.dart` covering RSA and EC key construction.

## Notes

This was surfaced while migrating the test suite to the Supabase CLI
(which signs tokens asymmetrically by default). That migration is a
separate follow-up PR stacked on this one.

25 of 27 new or added lines in 2 files covered. (92.59%)

4066 of 4744 relevant lines covered (85.71%)

3.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
70.52
0.0% packages/gotrue/lib/src/gotrue_client.dart
1
72.45
36.45% packages/gotrue/lib/src/types/jwt.dart
Jobs
ID Job ID Ran Files Coverage
6 supabase - 27603730747.6 16 Jun 2026 08:13AM UTC 15
88.62
GitHub Action Run
7 gotrue - 27603730747.7 16 Jun 2026 08:14AM UTC 26
83.3
GitHub Action Run
8 supabase_flutter - 27603730747.8 16 Jun 2026 08:14AM UTC 7
78.57
GitHub Action Run
2 realtime_client - 27575444586.2 15 Jun 2026 08:51PM UTC 11
87.65
GitHub Action Run
8 yet_another_json_isolate - 27575444586.8 15 Jun 2026 08:49PM UTC 1
79.03
GitHub Action Run
3 functions_client - 27575444586.3 15 Jun 2026 08:49PM UTC 2
97.1
GitHub Action Run
1 postgrest - 27575444586.1 15 Jun 2026 08:51PM UTC 9
83.74
GitHub Action Run
6 storage_client - 27575444586.6 15 Jun 2026 08:51PM UTC 5
93.01
GitHub Action Run
Source Files on build 27603730747
  • Tree
  • List 76
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27603730747
  • cc3137f9 on github
  • Prev Build on main (#27575444586)
  • Next Build on main (#27607214829)
  • 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