Skip to content

Commit e28cb4e

Browse files
committed
Fix binary packaging
1 parent 2a96bc6 commit e28cb4e

File tree

3 files changed

+7
-22
lines changed

3 files changed

+7
-22
lines changed

Sources/Auth/Storage/KeychainLocalStorage.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
import Foundation
33
@preconcurrency import KeychainAccess
44

5-
struct KeychainLocalStorage: AuthLocalStorage {
5+
public struct KeychainLocalStorage: AuthLocalStorage {
66
private let keychain: Keychain
77

8-
init(service: String, accessGroup: String?) {
8+
public init(service: String, accessGroup: String?) {
99
if let accessGroup {
1010
keychain = Keychain(service: service, accessGroup: accessGroup)
1111
} else {
1212
keychain = Keychain(service: service)
1313
}
1414
}
1515

16-
func store(key: String, value: Data) throws {
16+
public func store(key: String, value: Data) throws {
1717
try keychain.set(value, key: key)
1818
}
1919

20-
func retrieve(key: String) throws -> Data? {
20+
public func retrieve(key: String) throws -> Data? {
2121
try keychain.getData(key)
2222
}
2323

24-
func remove(key: String) throws {
24+
public func remove(key: String) throws {
2525
try keychain.remove(key)
2626
}
2727
}

Sources/Auth/Storage/LocalStorageEngines.swift

Lines changed: 0 additions & 15 deletions
This file was deleted.

Sources/Supabase/SupabaseClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public final class SupabaseClient: @unchecked Sendable {
121121
public convenience init(
122122
supabaseURL: String,
123123
supabaseKey: String,
124-
options: SupabaseClientOptions = .init(auth: .init(storage: LocalStorageEngines.keychain))
124+
options: SupabaseClientOptions = .init(auth: .init(storage: KeychainLocalStorage(service: "supabase.gotrue.swift", accessGroup: nil)))
125125
) {
126126
guard let supabaseURL = URL(string: supabaseURL) else {
127127
fatalError("Invalid supabaseURL: \(supabaseURL)")
@@ -142,7 +142,7 @@ public final class SupabaseClient: @unchecked Sendable {
142142
public convenience init(
143143
supabaseURL: String,
144144
supabaseKey: String,
145-
options: SupabaseClientOptions = .init(auth: .init(storage: LocalStorageEngines.wincred))
145+
options: SupabaseClientOptions = .init(auth: .init(storage: WinCredLocalStorage(service: "supabase.gotrue.swift")))
146146
) {
147147
guard let supabaseURL = URL(string: supabaseURL) else {
148148
fatalError("Invalid supabaseURL: \(supabaseURL)")

0 commit comments

Comments
 (0)