Swift: Overview

Examples

Create auth client

let supabase = SupabaseClient(supabaseURL: URL(string: "https://xyzcompany.supabase.co")!, supabaseKey: "public-anon-key")
let auth = supabase.auth

Create auth client with custom storage

let supabase = SupabaseClient(
  supabaseURL: URL(string: "https://xyzcompany.supabase.co")!, 
  supabaseKey: "public-anon-key",
  options: .init(
    auth: .init(
      MyCustomLocalStorage()
    )
  )
)
let auth = supabase.auth