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

supabase / supabase-swift / 28257314305

26 Jun 2026 04:21PM UTC coverage: 80.889% (+0.1%) from 80.772%
28257314305

push

github

grdsdev
chore: configure release-please for beta prerelease on v3

8279 of 10235 relevant lines covered (80.89%)

34.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

41.67
/Sources/Auth/Storage/KeychainLocalStorage.swift
1
#if !os(Windows) && !os(Linux) && !os(Android)
2
  import Foundation
3

4
  /// ``AuthLocalStorage`` implementation using Keychain. This is the default local storage used by the library.
5
  public struct KeychainLocalStorage: AuthLocalStorage {
6
    private let keychain: Keychain
7

8
    public init(service: String? = "supabase.gotrue.swift", accessGroup: String? = nil) {
1✔
9
      keychain = Keychain(service: service, accessGroup: accessGroup)
1✔
10
    }
1✔
11

12
    public func store(key: String, value: Data) throws {
×
13
      try keychain.set(value, forKey: key)
×
14
    }
×
15

16
    public func retrieve(key: String) throws -> Data? {
4✔
17
      try keychain.data(forKey: key)
4✔
18
    }
×
19

20
    public func remove(key: String) throws {
×
21
      try keychain.deleteItem(forKey: key)
×
22
    }
×
23
  }
24
#endif
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