I get some data back from the backend, which tells me the expiration date of the user subscription. If this date is in the past, I navigate the user somewhere else, so she can't log in:
if (expirationDate.getTime() < new Date().getTime()) {
navigate('/subscription-expired')
}
I am wondering whether it's safe to do a check like this comparison on the client? Can this be manipulated?
from Is it Safe to Compare Subscription-Expiration-Date & Current-Date on the Client Side? Or can this be manipulated?
No comments:
Post a Comment