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

supabase / supabase-swift / 19035475255
80%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2025 01:31PM UTC
Jobs 1
Files 86
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

03 Nov 2025 12:58PM UTC coverage: 80.835% (+0.03%) from 80.809%
19035475255

push

github

web-flow
fix(auth): replace trait with runtime configuration flag (#844)

* fix(auth): replace trait with runtime configuration flag

Replaces the EmitLocalSessionAsInitialSession trait with a runtime configuration flag to resolve compatibility issues with Xcode projects and align with Apple's trait guidelines.

## Changes

- Added `emitLocalSessionAsInitialSession: Bool` property to `AuthClient.Configuration`
  - Defaults to `false` for backward compatibility
  - Will change to `true` in next major release
- Replaced conditional compilation (`#if EmitLocalSessionAsInitialSession`) with runtime checks
- Updated deprecation warning to reference the new configuration option
- Added tests for both behaviors (old and new)
- Removed `EmitLocalSessionAsInitialSession` trait from Package@swift-6.1.swift

## Benefits

- Works in all project types (Xcode, SPM, CocoaPods)
- No recompilation required to change behavior
- Better discoverability through autocomplete and docs
- Complies with Apple's trait guidelines (traits must be strictly additive)

## Migration

Users who want the new behavior can now set:
```swift
AuthClient(
  // ... other config
  emitLocalSessionAsInitialSession: true
)
```

Resolves compatibility issues where Xcode projects cannot enable package traits.

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

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

* fix(auth): add emitLocalSessionAsInitialSession to SupabaseClientOptions

Adds support for the emitLocalSessionAsInitialSession flag in SupabaseClientOptions.AuthOptions so users can configure this behavior when creating a SupabaseClient.

- Added emitLocalSessionAsInitialSession property to SupabaseClientOptions.AuthOptions
- Updated both initializers to include the new parameter
- Pass the flag through to AuthClient initialization in SupabaseClient

This ensures users can configure the flag whether they create an AuthClient directly or use SupabaseClient.

🤖 Generated with [Claude Code... (continued)

10 of 12 new or added lines in 4 files covered. (83.33%)

2 existing lines in 1 file now uncovered.

6255 of 7738 relevant lines covered (80.83%)

27.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
87.12
0.01% Sources/Auth/AuthClient.swift

Uncovered Existing Lines

Lines Coverage ∆ File
2
87.12
0.01% Sources/Auth/AuthClient.swift
Jobs
ID Job ID Ran Files Coverage
1 19035475255.1 03 Nov 2025 01:31PM UTC 86
80.83
GitHub Action Run
Source Files on build 19035475255
  • Tree
  • List 86
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19035475255
  • e0bdfe89 on github
  • Prev Build on main (#19034593001)
  • Next Build on main (#19036551880)
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