Eosjs takes a parametre in its config viz. keyProvide
where we have to pass the private keys.
Eos = require('eosjs')
// Private key or keys (array) provided statically or by way of a function.
// For multiple keys, the get_required_keys API is used (more on that below).
keyProvider: '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3'
// Localhost Testnet (run ./docker/up.sh)
eos = Eos({keyProvider})
But if we deploy that code to the production, aren't we exposing our private keys? Or I am misunderstanding the concept here. Please clear the confusion.