File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public final class SupabaseClient: @unchecked Sendable {
128
128
#endif
129
129
130
130
#if os(Windows)
131
- /// Create a new client.
131
+ /// Create a new client.
132
132
/// - Parameters:
133
133
/// - supabaseURL: The unique Supabase URL which is supplied when you create a new project in
134
134
/// your project dashboard.
@@ -148,6 +148,27 @@ public final class SupabaseClient: @unchecked Sendable {
148
148
}
149
149
#endif
150
150
151
+ #if os(Linux)
152
+ /// Create a new client.
153
+ /// - Parameters:
154
+ /// - supabaseURL: The unique Supabase URL which is supplied when you create a new project in
155
+ /// your project dashboard.
156
+ /// - supabaseKey: The unique Supabase Key which is supplied when you create a new project in
157
+ /// your project dashboard.
158
+ /// - options: Custom options to configure client's behavior.
159
+ public convenience init (
160
+ supabaseURL: String ,
161
+ supabaseKey: String ,
162
+ options: SupabaseClientOptions
163
+ ) {
164
+ guard let supabaseURL = URL ( string: supabaseURL) else {
165
+ fatalError ( " Invalid supabaseURL: \( supabaseURL) " )
166
+ }
167
+
168
+ self . init ( supabaseURL: supabaseURL, supabaseKey: supabaseKey, options: options)
169
+ }
170
+ #endif
171
+
151
172
deinit {
152
173
listenForAuthEventsTask. value? . cancel ( )
153
174
}
You can’t perform that action at this time.
0 commit comments