Post

Replies

Boosts

Views

Activity

Connect Store Server API always return 401
We followed all the documentation, tried several combinations, but always returning 401. the below is being used in a nodejs application. let options = { algorithm: 'ES256', header: { 'alg': 'ES256', 'typ': 'JWT', 'kid': keyId } }; let now = Math.round((new Date()).getTime() / 1000); // Notice the /1000 let nowPlus20 = now + 1199 // 1200 === 20 minutes; const claims = { "iss": issuerId, "exp": nowPlus20, "aud": "appstoreconnect-v1" }; return jwt.sign(claims, key, options); Please advise and provide some feedbacks, some solutions.
3
0
1.7k
Jun ’22