Setting Credentials in Node.js

There are several ways in Node.js to supply your credentials to the SDK. Some of
these are more secure and others afford greater convenience while developing an
application. When obtaining credentials in Node.js, be careful about relying on more
than one source such as an environment variable and a JSON file you load.
You can change the permissions under which your code runs without realizing the
change has happened.

Here are the ways you can supply your credentials in order of recommendation: