Accept bounded StoreKit signing clock skew
Allow legitimate App Store transaction timestamps to differ within the existing verification tolerance while preserving rejection beyond that boundary.
This commit is contained in:
@@ -123,7 +123,7 @@ class StoreKitService(
|
||||
}
|
||||
val now = clock.instant()
|
||||
if (
|
||||
transaction.purchasedAt > transaction.signedAt ||
|
||||
transaction.purchasedAt > transaction.signedAt.plus(MAX_CLOCK_SKEW) ||
|
||||
transaction.signedAt > now.plus(MAX_CLOCK_SKEW)
|
||||
) {
|
||||
throw StoreKitPurchaseConflict()
|
||||
|
||||
Reference in New Issue
Block a user