Skip to content

Commit a89b36b

Browse files
committed
trying to fix linux build
1 parent a859df7 commit a89b36b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Sources/Auth/Deprecated.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import Foundation
9+
import _Helpers
910

1011
@available(*, deprecated, renamed: "AuthClient")
1112
public typealias GoTrueClient = AuthClient

Sources/Auth/Storage/AuthLocalStorage.swift

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ public protocol AuthLocalStorage: Sendable {
77
}
88

99
extension AuthClient.Configuration {
10-
public static let defaultLocalStorage: AuthLocalStorage = {
11-
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
12-
KeychainLocalStorage(
13-
service: "supabase.gotrue.swift",
14-
accessGroup: nil
15-
)
16-
#elseif os(Windows)
10+
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
11+
public static let defaultLocalStorage: AuthLocalStorage = KeychainLocalStorage(
12+
service: "supabase.gotrue.swift",
13+
accessGroup: nil
14+
)
15+
#elseif os(Windows)
16+
public static let defaultLocalStorage: AuthLocalStorage =
1717
WinCredLocalStorage(service: "supabase.gotrue.swift")
18-
#endif
19-
}()
18+
#endif
2019
}

0 commit comments

Comments
 (0)