Sep30AuthMethod

public struct Sep30AuthMethod : Sendable

Authentication method for identity verification.

Specifies how an identity can be authenticated to recover account access. Multiple methods can be configured per identity for flexibility.

  • Type of authentication method. Common values: “stellar_address” (proven via SEP-10), “phone_number” (E.164 format with leading +), “email”.

    Declaration

    Swift

    public var type: String
  • Unique identifier for this authentication method. Format depends on type: Stellar address for stellar_address, phone number for phone_number, email address for email.

    Declaration

    Swift

    public var value: String
  • Creates a new authentication method with type and value.

    Declaration

    Swift

    public init(type: String, value: String)
  • Converts the authentication method to a JSON-compatible dictionary.

    Declaration

    Swift

    public func toJson() -> [String : Any]