Swift: Sign in with a passkey

Signs the user in with a passkey (WebAuthn). Available on iOS 16+, macOS 13+, and visionOS 1+.

Examples

Sign in with a passkey

// iOS 16+/macOS 13+ only. Must opt in: @_spi(Experimental) import Supabase
let response = try await supabase.auth.signInWithPasskey(
  presentationAnchor: view.window!
)
let session = response.session
let user = response.user