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

safe-global / safe-client-gateway / 23588612769
90%

Build:
DEFAULT BRANCH: main
Ran 26 Mar 2026 10:09AM UTC
Jobs 2
Files 1108
Run time 2min
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

26 Mar 2026 10:06AM UTC coverage: 89.558% (-0.04%) from 89.597%
23588612769

push

github

web-flow
Epic/email auth (#2989)

* feat(auth): extend JWT payload (#2971)

* feat(auth): extend JWT payload with RFC 7519 registered claims

Standardize CGW JWT to use registered claims (sub, aud, auth_method)
instead of inferring auth type from field presence. This is a breaking
change that invalidates existing SIWE sessions.

- Add discriminated union schema on auth_method (siwe/oidc)
- Add sub claim (numeric user ID) and aud claim to JWT
- Auto-create user on first SIWE login via findOrCreateByWalletAddress
- Add audience validation at JWT library level
- Reject legacy tokens missing auth_method/sub fields

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: formatting

* refactor: rename from authPayloadDtoBuilder to siweAuthPayloadDtoBuilder

* test: enhance AuthPayload entity tests for SIWE and OIDC payloads

* fix: formatting

* docs: remove unnecessary comment

* test: refactor SpacesService tests to use siweAuthPayloadDtoBuilder for auth payloads

* refactor: extract TestUsersModule

* fix: remove unused import

* test: integrate UsersModule and enhance auth payload assertions in NotificationsController tests

* refactor: update AuthRepository to use new AuthPayloadWithClaimsDtoSchema for token decoding

- Removed unused imports and simplified the decodeToken method to utilize the new AuthPayloadWithClaimsDtoSchema.
- Introduced AuthPayloadWithClaimsDtoSchema to extend JWT claims with SIWE and OIDC payloads in the auth-payload.entity.ts file.

* chore: add license headers

* test: add integration tests for findOrCreateByWalletAddress

* fix: handle race condition in findOrCreateByWalletAddress

Catch the unique constraint violation (UQ_wallet_address) that can occur
when two concurrent SIWE logins for the same address both pass the
initial find check and attempt to insert. On conflict, retry the lookup.

* refactor: omit sub from JwtClaimsSchema in AuthPayloadWithClaimsDtoSchema

The auth payload schemas define sub as a required NumericSt... (continued)

3185 of 4002 branches covered (79.59%)

Branch coverage included in aggregate %.

291 of 298 new or added lines in 36 files covered. (97.65%)

53 existing lines in 15 files now uncovered.

15083 of 16396 relevant lines covered (91.99%)

602.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.87
-3.79% src/modules/users/domain/users.repository.ts
3
0.0
src/modules/auth/oidc/auth0/__tests__/test.auth0.module.ts

Coverage Regressions

Lines Coverage ∆ File
14
35.71
-50.0% src/datasources/cache/cache.module.ts
10
36.36
-45.45% src/modules/queues/datasources/queues-api.module.ts
6
36.36
-54.55% src/modules/queues/datasources/queues-api.shutdown.hook.ts
4
63.64
-36.36% src/datasources/storage/cloud-storage.module.ts
3
70.0
-30.0% src/datasources/db/v1/postgres-database.shutdown.hook.ts
3
83.33
-16.67% src/modules/csv-export/v1/csv-export.module.ts
2
20.83
-8.33% src/config/entities/blocklist.service.ts
2
84.62
-15.38% src/datasources/network/tx-auth.network.module.ts
2
89.33
-6.67% src/modules/notifications/routes/v1/notifications.controller.ts
2
90.24
-2.44% src/modules/targeted-messaging/datasources/targeted-messaging.datasource.ts
1
96.3
-3.7% src/datasources/db/v1/postgres-database.migration.hook.ts
1
83.33
-16.67% src/modules/backbone/domain/entities/__tests__/backbone.builder.ts
1
75.0
-6.25% src/modules/csv-export/v1/csv-export.controller.ts
1
90.32
-3.23% src/modules/notifications/routes/v1/entities/__tests__/create-registration-v2.dto.builder.ts
1
95.77
-1.41% src/modules/targeted-messaging/datasources/outreach-file-processor.ts
Jobs
ID Job ID Ran Files Coverage
1 run-integration-tests - 23588612769.1 26 Mar 2026 10:11AM UTC 2133
78.74
GitHub Action Run
2 run-unit-tests - 23588612769.2 26 Mar 2026 10:09AM UTC 1942
57.12
GitHub Action Run
Source Files on build 23588612769
  • Tree
  • List 1108
  • Changed 332
  • Source Changed 24
  • Coverage Changed 331
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23588612769
  • f4a4a876 on github
  • Prev Build on main (#23432969761)
  • Next Build on main (#23601251714)
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