For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Initialize client session

Examples

Wait for the initial session

await supabase.auth.initialization()

if let session = supabase.auth.currentSession {
  print("Signed in as \(session.user.id)")
}