Skip to content

Commit

Permalink
trying to fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Jan 16, 2024
1 parent a859df7 commit a89b36b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions Sources/Auth/Deprecated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import _Helpers

@available(*, deprecated, renamed: "AuthClient")
public typealias GoTrueClient = AuthClient
Expand Down
17 changes: 8 additions & 9 deletions Sources/Auth/Storage/AuthLocalStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ public protocol AuthLocalStorage: Sendable {
}

extension AuthClient.Configuration {
public static let defaultLocalStorage: AuthLocalStorage = {
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
KeychainLocalStorage(
service: "supabase.gotrue.swift",
accessGroup: nil
)
#elseif os(Windows)
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
public static let defaultLocalStorage: AuthLocalStorage = KeychainLocalStorage(
service: "supabase.gotrue.swift",
accessGroup: nil
)
#elseif os(Windows)
public static let defaultLocalStorage: AuthLocalStorage =
WinCredLocalStorage(service: "supabase.gotrue.swift")
#endif
}()
#endif
}

0 comments on commit a89b36b

Please sign in to comment.