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: Register a passkey

Registers a new passkey (WebAuthn credential) for the signed-in user. Available on Apple platforms except watchOS.

Examples

Register a passkey for the current user

// Must opt in: @_spi(Experimental) import Supabase
let passkey = try await supabase.auth.passkeys.register()
print("Registered passkey \(passkey.id)")