toString

open override fun toString(): String

Returns the raw JWT token string.

This allows the token to be used directly in string contexts, such as HTTP Authorization headers for SEP-24, SEP-31, SEP-6, and other protocols:

// Example: Using token with SEP-24
val response = httpClient.get("https://anchor.com/sep24/transactions") {
headers {
append("Authorization", "Bearer $authToken") // Uses toString()
}
}

Return

The raw JWT token string