Swift: Retrieve a session
- Returns the session, refreshing it if necessary. If no session can be found, a
GoTrueError.sessionNotFound
error is thrown.
Examples
Get the session data
try await supabase.auth.session
Get the current session without validation
let session = supabase.auth.currentSession