I've seen some examples that use tronweb in a web application. I would think that seems unsecure. Even the documentation says not to use it in a public/user facing application. Is there a way to use tronweb in a browser (ie, javascript code base)?
Edit:
This is where it says not to use it in public apps: https://developers.tron.network/docs/tool-methods#section-set-private-key