I am building a web app, which is made of a Node.js Backend and Angular (NOT AngularJS!!! I only used the tag, because Angular was not available..) Frontend.
How do I properly secure this app? I already have an idea to use JWT tokens (I already implemented this) with a set expiration date, which will be way longer than the Frontend timer. The frontend timer should be like 15 minutes of inactivity. But how do I secure this Frontend timer against RAM modification with tools like Cheat Engine and also JavaScript modification/injection/editing? Are there any flaws in this logic? Any suggestions?
I was thinking of renewing JWT tokens, but that's apparently not possible. I am sure there's something wrong with my logic but I can't put my finger on it. Maybe I am lacking general sessions and their management?