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, a OperationError 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, an OperationError will be returned as a result of the operation.

    Note

    Due to some language limitation Array is provided instead of Set.

    Note

    The Accounts in the provided Array are unique.

    Declaration

    Swift

    var registeredAccounts: [any Account] { get }

    Return Value

    the list of registered accounts.

  • Returns true if the provided user is registered and false otherwise.

    Declaration

    Swift

    func isRegistered(_ username: Username) -> Bool

    Parameters

    username

    the username.

    Return Value

    true if the provided user is registered and false otherwise.