Sep30Unauthorized Exception
Exception thrown when the recovery server returns HTTP 401 Unauthorized.
Indicates that the request lacks valid authentication credentials or the provided credentials are insufficient. This typically occurs when:
The SEP-10 authentication token is missing
The SEP-10 authentication token has expired
The authenticated account does not have permission for the requested operation
Recovery actions:
Obtain a valid SEP-10 authentication token before retrying
Re-authenticate if the token has expired
Verify the authenticated account has the required permissions
Example - Handle unauthorized:
try {
val account = sep30Service.registerAccount(address, identities, signers)
} catch (e: Sep30UnauthorizedException) {
println("Authentication required: ${e.message}")
// Re-authenticate via SEP-10 and retry
}Content copied to clipboard
See also:
Sep30Exception base class
Parameters
message
Detailed error message from the recovery server