register
Creates a passkey. Typical errors: PasskeyError.Cancelled, PasskeyError.AlreadyRegistered, PasskeyError.Misconfigured, PasskeyError.InvalidOptions, PasskeyError.NotSupported.
excludeCredentials needs iOS 17.4+. Older iOS versions ignore it, so they never report PasskeyError.AlreadyRegistered and may save a second passkey for the same account; the server still receives the new credential and can reject or replace the duplicate.