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.
Registers a new passkey (WebAuthn credential) for the signed-in user. Available on Apple platforms except watchOS.
PasskeyListItem. The server names the passkey after the authenticator. Change the name with passkeys.rename(id:friendlyName:).anchor is the window to show the sheet from. nil uses the app's key window.passkeys.registrationOptions() + passkeys.verifyRegistration(challengeID:credential:) instead.@_spi(Experimental) import Supabase.// Must opt in: @_spi(Experimental) import Supabase
let passkey = try await supabase.auth.passkeys.register()
print("Registered passkey \(passkey.id)")