RegistrationInfo
public protocol RegistrationInfo : Encodable
An object containing information about the registrations of an authenticator.
-
Returns the objects representing the accounts that are registered with this authenticator.
If an authenticator that is registered for a given username is provided through
AuthenticatorSelector
for registration operations associated with the account associated with the username, aOperationError
will be returned as a result of the operation.If an authenticator that is not registered for a given username is provided through
AuthenticatorSelector
for authentication operations associated with the account associated with the username, anOperationError
will be returned as a result of the operation.Note
Due to some language limitation
Array
is provided instead ofSet
.Note
The
Account
s in the providedArray
are unique.Declaration
Swift
var registeredAccounts: [any Account] { get }
Return Value
the list of registered accounts.
-
Returns
true
if the provided user is registered andfalse
otherwise.Declaration
Swift
func isRegistered(_ username: Username) -> Bool
Parameters
username
the username.
Return Value
true
if the provided user is registered andfalse
otherwise.