SEP30ResponseIdentity

public struct SEP30ResponseIdentity : Decodable, Sendable

Identity information in recovery service responses.

Contains the role of an identity and optionally indicates if the current client is authenticated as this identity.

  • Role of this identity in relation to the account, if provided by the server. Common values: “owner”, “sender”, “receiver”. For GET /accounts, this may be absent.

    Declaration

    Swift

    public let role: String?
  • Indicates if the currently authenticated client matches this identity. Present and true when the authenticated JWT corresponds to this identity’s authentication methods.

    Declaration

    Swift

    public let authenticated: Bool?
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data