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
Copy file name to clipboardexpand all lines: appstore/api/token.go
+16-15
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,18 @@ var (
24
24
typeTokenstruct {
25
25
sync.Mutex
26
26
27
-
KeyContent []byte// Loads a .p8 certificate
28
-
KeyIDstring// Your private key ID from App Store Connect (Ex: 2X9R4HXF34)
29
-
BundleIDstring// Your app’s bundle ID
30
-
Issuerstring// Your issuer ID from the Keys page in App Store Connect (Ex: "57246542-96fe-1a63-e053-0824d011072a")
31
-
Sandboxbool// default is Production
32
-
IssueAtint64// The token’s creation time, in UNIX time. Default is current timestamp.
33
-
ExpiredAtint64// The token’s expiration time, in UNIX time. Tokens that expire more than 60 minutes after the time in iat are not valid (Ex: 1623086400)
27
+
KeyContent[]byte// Loads a .p8 certificate
28
+
KeyIDstring// Your private key ID from App Store Connect (Ex: 2X9R4HXF34)
29
+
BundleIDstring// Your app’s bundle ID
30
+
Issuerstring// Your issuer ID from the Keys page in App Store Connect (Ex: "57246542-96fe-1a63-e053-0824d011072a")
31
+
Sandboxbool// default is Production
32
+
IssuedAtFuncfunc() int64// The token’s creation time func. Default is current timestamp.
33
+
ExpiredAtFuncfunc()int64// The token’s expiration time func.
34
34
35
35
// internal variables
36
-
AuthKey*ecdsa.PrivateKey// .p8 private key
37
-
Bearerstring// Authorized bearer token
36
+
AuthKey*ecdsa.PrivateKey// .p8 private key
37
+
Bearerstring// Authorized bearer token
38
+
ExpiredAtint64// The token’s expiration time, in UNIX time
0 commit comments