Next.js Discord

Discord Forum

hi, where is it a safe place to store like subscription expiry date? session storage? local storage?

Unanswered
Bighead carp posted this in #help-forum
Open in Discord
Bighead carpOP
I have lines of code in the middleware that gets triggered everytime a request iscalled to check if the subscription is expired
Where should I store the subscription expiry date timestamp so the user cannot modify it using browser devtools etc?

1 Reply

Asian black bear
Signed in a JWT or in your database.