Skip to content

Instantly share code, notes, and snippets.

@satishbabariya
Last active June 1, 2021 07:38
Show Gist options
  • Save satishbabariya/c2d56dd75ff1d206165685cc4ff61446 to your computer and use it in GitHub Desktop.
Save satishbabariya/c2d56dd75ff1d206165685cc4ff61446 to your computer and use it in GitHub Desktop.
var supabase = SupabaseClient(supabaseUrl: "", supabaseKey: "")
supabase.auth.signIn(email: "[email protected]", password: "secret") { result in
switch result {
case let .success(session):
print(session)
case let .failure(error):
print(error.localizedDescription)
}
}
supabase.storage.listBuckets { result in
switch result {
case let .success(buckets):
print(buckets)
case let .failure(error):
print(error.localizedDescription)
}
e.fulfill()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment