Skip to content

Commit 2c387f7

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

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Sources/Auth/Storage/AuthLocalStorage.swift

+8-9
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)