jwsRepresentation
The subscription renewal information signed by the App Store, in JWS Compact Serialization format.
Declaration
var jwsRepresentation: String { get }Discussion
Use this JSON Web Signature (JWS) value to perform your own JWS verification on your server or on the device.
The jwsRepresentation is the same as the JWSRenewalInfo that the App Store Server API returns, and the JWSRenewalInfo that you receive from App Store Server Notifications. The jwsRepresentation’s decoded payload contains two additional fields: deviceVerification and deviceVerificationNonce. Use these fields on the device to verify that the JWS information belongs to the device. For more information, see deviceVerificationID.
To verify the jwsRepresentation on your server, consider using the App Store Server Library function verifyAndDecodeRenewalInfo, available in each language the library supports. For more information, see Simplifying your implementation by using the App Store Server Library.