WebAuthForContractsError
public enum WebAuthForContractsError : Error, Sendable
Errors that occur during WebAuthForContracts initialization and configuration. These errors represent failures when setting up the SEP-45 authentication service.
-
The provided domain is not a valid URL or domain format.
Declaration
Swift
case invalidDomain -
The stellar.toml file could not be parsed or is malformed.
Declaration
Swift
case invalidToml -
The stellar.toml file does not specify a WEB_AUTH_FOR_CONTRACTS_ENDPOINT.
Declaration
Swift
case noAuthEndpoint -
The stellar.toml file does not specify a WEB_AUTH_CONTRACT_ID.
Declaration
Swift
case noWebAuthContractId -
The stellar.toml file does not specify a SIGNING_KEY for the authentication server.
Declaration
Swift
case noSigningKey -
The WEB_AUTH_CONTRACT_ID is invalid or malformed.
Declaration
Swift
case invalidWebAuthContractId(message: String) -
The server’s SIGNING_KEY is invalid or not in the correct format.
Declaration
Swift
case invalidServerSigningKey(message: String) -
The WEB_AUTH_FOR_CONTRACTS_ENDPOINT URL is invalid or malformed.
Declaration
Swift
case invalidAuthEndpoint(message: String) -
The server home domain is empty or missing.
Declaration
Swift
case emptyServerHomeDomain -
The client account ID is invalid or not in the correct contract address format.
Declaration
Swift
case invalidClientAccountId(message: String) -
A client domain signing callback is required but was not provided.
Declaration
Swift
case missingClientDomainSigningCallback
View on GitHub
Install in Dash