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

supabase / supabase-swift / 17735849623
80%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2025 02:19PM UTC
Jobs 1
Files 82
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

15 Sep 2025 02:06PM UTC coverage: 77.504% (+0.06%) from 77.442%
17735849623

push

github

web-flow
feat(auth): implement linkIdentity with OIDC (#776)

* feat(auth): implement linkIdentity with OIDC

- Add linkIdentityWithIdToken method to AuthClient
- Refactor signInWithIdToken to support identity linking
- Add linkIdentity property to OpenIDConnectCredentials
- Improve code formatting consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* test(auth): record snapshots

* test: add snapshot test for linkIdentityWithIdToken method

* add link identity with oidc example

* refactor: simplify linkIdentityWithIdToken implementation

- Remove private _signInWithIdToken helper method
- Inline the implementation directly in linkIdentityWithIdToken
- Update test to include Authorization header in expected request
- Add session storage setup for linkIdentityWithIdToken test

* test: add event assertions to testLinkIdentityWithIdToken

- Add event monitoring to verify userUpdated event is triggered
- Assert correct event sequence: [.initialSession, .userUpdated]
- Verify session state is properly updated
- Follow consistent testing pattern with other auth tests

* refactor: add convenience methods for auth event assertions

- Add assertAuthStateChanges convenience methods to reduce code duplication
- Support both action-based and post-action event assertion patterns
- Refactor testSignOut, testSignInAnonymously, and testLinkIdentityWithIdToken to use new methods
- Improve test readability and maintainability
- Reduce boilerplate code in auth state change tests

* refactor: simplify assertAuthStateChanges by using expectedEvents.count

- Remove expectedEventCount parameter from convenience methods
- Use expectedEvents.count to determine number of events to collect
- Reduces API surface and eliminates redundant parameter
- Makes the methods more intuitive and less error-prone

* refactor: improve testLinkIdentityWithIdToken and assertAuthStateChanges

- Refactor testLinkIdentityWithIdToken to use ... (continued)

26 of 28 new or added lines in 2 files covered. (92.86%)

1 existing line in 1 file now uncovered.

5540 of 7148 relevant lines covered (77.5%)

23.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
88.68
0.18% Sources/Auth/AuthClient.swift

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.68
0.18% Sources/Auth/AuthClient.swift
Jobs
ID Job ID Ran Files Coverage
1 17735849623.1 15 Sep 2025 02:19PM UTC 82
77.5
GitHub Action Run
Source Files on build 17735849623
  • Tree
  • List 82
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17735849623
  • 661e3218 on github
  • Prev Build on main (#17728939270)
  • Next Build on main (#17911479928)
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