Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Reset expiration date too when iap is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub committed Nov 18, 2022
1 parent 1b79d5c commit 11b1ef3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/BraveVPN/IAPObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class IAPObserver: NSObject, SKPaymentTransactionObserver {
// after log in to account.brave website.
Preferences.VPN.skusCredential.reset()
Preferences.VPN.skusCredentialDomain.reset()
Preferences.VPN.skusCredentialExpirationDate.reset()
} else {
// Receipt either expired or receipt validation returned some error.
self.delegate?.purchaseFailed(error: .receiptError)
Expand Down

0 comments on commit 11b1ef3

Please sign in to comment.