Swift: Retrieve a user

Examples

Get the logged in user with the current existing session

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

Get the logged in user with a custom access token jwt

let user = try await supabase.auth.user(jwt: "custom-jwt")

Get current user

let user = supabase.auth.currentUser