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: Retrieve a session

Examples

Get the session data

let session = try await supabase.auth.session()

Get the current session without validation

let session = supabase.auth.currentSession