Skip to content

Commit

Permalink
test for key presence
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpigeon authored Feb 28, 2021
1 parent 597115b commit ffa067e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ const PASSWORD = process.env.PASSWORD;
const CLIENT_ID = process.env.CLIENT_ID; // Created through Cortex Apps page on Emotiv.com
const CLIENT_SECRET = process.env.CLIENT_SECRET; // Created through Cortex Apps page on Emotiv.com
const LICENSE_ID = process.env.LICENSE_ID; // Visible on My Account page of Emotiv.com

const envVars = { USERNAME, PASSWORD, CLIENT_ID, CLIENT_SECRET, LICENSE_ID }
Object.keys(envVars).forEach(k => console.log(typeof envVars[k] === 'string'))

module.exports = { USERNAME, PASSWORD, CLIENT_ID, CLIENT_SECRET, LICENSE_ID };

0 comments on commit ffa067e

Please sign in to comment.