- RLS is disabled
- Supabase consumer is utilizing public credentials, not admin key
- Utilizing XCode
Querying my private “customers” desk (not non-public auth desk) that has two customers in it. Bash consumer works completely as anticipated, Swift consumer not returning something. I am new within the Swift house, so if I am not initializing or utilizing state appropriately, let me know. Extra particulars under.
swift-driver model: 1.90.11.1 Apple Swift model 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Goal: arm64-apple-macosx14.0
Complete class for initializng and sharing supabase consumer:
public class SupabaseClient {
public static let shared = SupabaseClient()
public let consumer: Supabase.SupabaseClient
non-public init() {
consumer = Supabase.SupabaseClient(
supabaseURL: URL(string: "https://--.supabase.co")!,
supabaseKey: "ey--"
)
}
var auth: AuthClient {
return consumer.auth
}
var storage: SupabaseStorageClient {
return consumer.storage
}
struct UserBruh: Identifiable, Codable, Hashable {
var id: String?
}
public func getUsers() async {
do {
let question = attempt await consumer.from("customers").choose().execute().worth
print(question)
} catch {
print("Did not execute question: (error)")
}
}
}
I’ve a SignUpView that referred to as SupabaseClient.shared and runs the getUsers operate. Prints () for the worth, when the bash consumer returns the person information as anticipated. Glad to present any extra information if wanted.