-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
// These values must be filled with the appropriate Emotiv credentials to be able to use the Cortex SDK | ||
// We have our credentials stored in environement variables | ||
|
||
const USERNAME = process.env.USERNAME; | ||
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 }; | ||
const envVars = { 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 }; | ||
module.exports = { CLIENT_ID, CLIENT_SECRET, LICENSE_ID }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters