When developing a product, how do you build and test it so that user information is protected, your APIs can't be abused etc.? Where do you learn this information so you can apply it in practice?
Don't trust the user input, don't trust the API endpoints you connect to, don't trust HTTP headers, don't trust the browser to protect your cookies, don't trust the browser to appkysame-orogon restrictions, etc.
OWASP top 10 is a great start. I have done quite a few talks about OWASP top 10 in a PHP context, but I suppose they wouldn't be useful in Node/Java context. But there's plenty of things to watch out for in general (such as CSRF and XSS), and language-specific stuff (such as Java's nasty XXE).
Because you mentioned JWT: It's often a quite low effort country when an app uses JWT. JWT allows various authentication mechanisms that are either null, or insecure. Of you use JWT, make sure to restrict to the secure flags and reject all other tokens.