ValidatedUsernameCallback

public class ValidatedUsernameCallback : AbstractValidatedCallback, @unchecked Sendable

A callback that collects a username with validation against given policies.

  • The username input collected from the user.

    Declaration

    Swift

    public var username: String
  • Initializes a new instance of ValidatedCreateUsernameCallback with the provided JSON input.

    Declaration

    Swift

    public override func initValue(name: String, value: Any)
  • Returns the payload with the username and validation values.

    Declaration

    Swift

    public override func payload() -> [String : Any]