TypeError: _appStoreServerLibrary.SignedDataVerifier is not a constructor node js app-store-server-library

14 Views Asked by At

while verify signed data with app-store-server-library. facing while crating base object TypeError: _appStoreServerLibrary.SignedDataVerifier is not a constructor

fin out on documentation form github repo and github documentation. https://github.com/apple/app-store-server-library-node?tab=readme-ov-file https://apple.github.io/app-store-server-library-node/classes/SignedDataVerifier.html#verifyAndDecodeTransaction

1

There are 1 best solutions below

0
HARSHIL ZADAFIYA On

Just use SignedJWTVerifier from app-store-server-library

for example

import { SignedJWTVerifier } from 'app-store-server-library';

const verifier = new SignedJWTVerifier(appleRootCAs, enableOnlineChecks, environment, storeConfigs.appStore.BundleId, appAppleId);