AuthorizationError

public enum AuthorizationError : Error

Error for authentication requests.

  • Specifies that the url response from the server does not contain queryItems.

    Declaration

    Swift

    case invalidURLResponse(url: URL)

    Parameters

    url

    The url that does not contain query items.

  • Specifies that the JSON response could not be properly parsed.

    Declaration

    Swift

    case unableToParseJSON(json: String)

    Parameters

    JSON

    The JSON that could not be parsed.

  • Specifies that an unknown error has occured.

    Declaration

    Swift

    case unknownError(Error)

    Parameters

    Error

    the error that was thrown.

  • Specifies that the parameters included in the url request are not properly defined.

    Declaration

    Swift

    case invalidQueryParameters(desc: String)

    Parameters

    desc

    Description of what parameters must be defined.

  • Specifies that the authorization url is invalid.

    Declaration

    Swift

    case invalidAuthURL(desc: String, url: String)

    Parameters

    desc

    Description of what makes a valid authorization url.

    url

    The provided, invalid, url.

  • Specifies that the authorization code returned is invalid, or missing.

    Declaration

    Swift

    case noCode(desc: String)

    Parameters

    desc

    Description of the missing code.