File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,8 @@ public protocol AuthLocalStorage: Sendable {
8
8
9
9
extension AuthClient . Configuration {
10
10
#if !os(Linux) && !os(Windows)
11
- public static let defaultLocalStorage : any AuthLocalStorage = KeychainLocalStorage (
12
- service: " supabase.gotrue.swift " ,
13
- accessGroup: nil
14
- )
11
+ public static let defaultLocalStorage : any AuthLocalStorage = KeychainLocalStorage ( )
15
12
#elseif os(Windows)
16
- public static let defaultLocalStorage : any AuthLocalStorage =
17
- WinCredLocalStorage ( service: " supabase.gotrue.swift " )
13
+ public static let defaultLocalStorage : any AuthLocalStorage = WinCredLocalStorage ( )
18
14
#endif
19
15
}
Original file line number Diff line number Diff line change 1
1
#if !os(Windows) && !os(Linux)
2
2
import Foundation
3
3
4
+ /// ``AuthLocalStorage`` implementation using Keychain. This is the default local storage used by the library.
4
5
public struct KeychainLocalStorage : AuthLocalStorage {
5
6
private let keychain : Keychain
6
7
7
- public init ( service: String , accessGroup: String ? ) {
8
+ public init ( service: String = " supabase.gotrue.swift " , accessGroup: String ? = nil ) {
8
9
keychain = Keychain ( service: service, accessGroup: accessGroup)
9
10
}
10
11
Original file line number Diff line number Diff line change 13
13
private let credentialType : DWORD
14
14
private let credentialPersistence : DWORD
15
15
16
- public init ( service: String ) {
16
+ public init ( service: String = " supabase.gotrue.swift " ) {
17
17
self . service = service
18
18
credentialType = DWORD ( CRED_TYPE_GENERIC)
19
19
credentialPersistence = DWORD ( CRED_PERSIST_LOCAL_MACHINE)
You can’t perform that action at this time.
0 commit comments