Sep30AuthMethod

data class Sep30AuthMethod(val type: String, val value: String)

Represents an authentication method for identity verification in SEP-30 account recovery.

Each authentication method specifies a type and a value that a recovery server uses to verify the identity of a user during account recovery. Multiple authentication methods can be associated with a single identity to provide multi-factor verification.

Common Types

  • stellar_address: A Stellar federation address (e.g., "user*example.com")

  • phone_number: A phone number in E.164 format (e.g., "+14155551234")

  • email: An email address (e.g., "user@example.com")

Usage

val emailAuth = Sep30AuthMethod(type = "email", value = "user@example.com")
val phoneAuth = Sep30AuthMethod(type = "phone_number", value = "+14155551234")
val stellarAuth = Sep30AuthMethod(type = "stellar_address", value = "user*example.com")

See also

Constructors

Link copied to clipboard
constructor(type: String, value: String)

Properties

Link copied to clipboard

The type of authentication method (e.g., "stellar_address", "phone_number", "email")

Link copied to clipboard

The value for this authentication method

Functions

Link copied to clipboard
fun toJson(): Map<String, Any?>

Converts this authentication method to a JSON-compatible map.