From 09c5938bd7b7556d933ee7a421141d4471e5e040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Jos=C3=A9=20Pereira=20Vieito?= Date: Wed, 10 Feb 2021 19:46:22 +0100 Subject: [PATCH] Fixed `errorCode` typo The official documentation states that the error code query parameter name is `errorCode` (the dash is only shown by the [rendered documentation webpage](http://x-callback-url.com/specifications/), check the spec raw text or [the official examples](http://x-callback-url.com/examples/)). --- Sources/CallbackURLKit.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CallbackURLKit.swift b/Sources/CallbackURLKit.swift index 321e2ba..5e9426b 100644 --- a/Sources/CallbackURLKit.swift +++ b/Sources/CallbackURLKit.swift @@ -116,7 +116,7 @@ let kXCUSource = "x-source" let kXCUSuccess = "x-success" // URL to open if the requested action generates an error in the target app. This URL will be open with at least the parameters “errorCode=code&errorMessage=message”. If x-error is not present, and a error occurs, it is assumed the target app will report the failure to the user and remain in the target app. let kXCUError = "x-error" -let kXCUErrorCode = "error-Code" +let kXCUErrorCode = "errorCode" let kXCUErrorMessage = "errorMessage" // URL to open if the requested action is cancelled by the user. In the case where the target app offer the user the option to “cancel” the requested action, without a success or error result, this the the URL that should be opened to return the user to the source app. let kXCUCancel = "x-cancel"