You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information about apple sign in, please review [apple doc](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api).
Copy file name to clipboardExpand all lines: auth/README.md
+16-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Go client library for signing in user
1
+
# Go client library for signing in with apple
2
2
3
-
Go client library for signing in user.
3
+
For more information about apple sign in, please review [apple doc](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api).
4
4
5
5
## Install
6
6
@@ -21,8 +21,20 @@ go get github.com/canopas/apple-sdk-go/auth
// errors contains all possible errors info when proccessing with app store receipt
2
+
package receipt
3
+
4
+
import"errors"
5
+
6
+
// list of errors
7
+
var (
8
+
ErrAppStoreServer=errors.New("appStore server error")
9
+
ErrInvalidJSON=errors.New("the App Store could not read the JSON object you provided")
10
+
ErrInvalidReceiptData=errors.New("the data in the receipt-data property was malformed or missing")
11
+
ErrReceiptUnauthenticated=errors.New("the receipt could not be authenticated")
12
+
ErrInvalidSharedSecret=errors.New("the shared secret you provided does not match the shared secret on file for your account")
13
+
ErrServerUnavailable=errors.New("the receipt server is not currently available")
14
+
ErrReceiptIsForTest=errors.New("this receipt is from the test environment, but it was sent to the production environment for verification. Send it to the test environment instead")
15
+
ErrReceiptIsForProduction=errors.New("this receipt is from the production environment, but it was sent to the test environment for verification. Send it to the production environment instead")
16
+
ErrReceiptUnauthorized=errors.New("this receipt could not be authorized. Treat this the same as if a purchase was never made")
17
+
ErrSubscriptionExpired=errors.New("subscription has expired")
0 commit comments