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 c9893fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions Sources/Auth/Deprecated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
// Created by Guilherme Souza on 14/12/23.
//

import _Helpers
import Foundation

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

@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 c9893fa

Please sign in to comment.