Skip to content

Commit

Permalink
comment out testtoken
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandana-NNR committed Oct 29, 2024
1 parent 8ba7d58 commit 5f7d391
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ export default class App extends Base {
const standalone = new URLSearchParams(appUrl.search).get('standalone');
const standalonePrefix = new URLSearchParams(appUrl.search).get('standalonePrefix');
this.systemui = new URLSearchParams(window.location.search).get('systemui');
this.testToken = new URLSearchParams(window.location.search).get('testtoken');
// this.testToken = new URLSearchParams(window.location.search).get('testtoken');
this.pubSubUuidPresent = false;
this.appContinue = false;
process.env.LIFECYCLE_VALIDATION = lifecycle;
process.env.MOCKOS = false;
process.env.MF_VALUE = false;
testContext ? (process.env.TESTCONTEXT = JSON.parse(testContext)) : (process.env.TESTCONTEXT = false);
process.env.TESTCONTEXT = true; // Making TESTCONTEXT = true by default. This line will be removed in later stages when required
process.env.TEST_TOKEN = this.testToken;
// process.env.TEST_TOKEN = this.testToken;
process.env.REPORTINGID = reportingId;
process.env.STANDALONE = standalone;
process.env.STANDALONE_PREFIX = standalonePrefix;
Expand Down Expand Up @@ -417,11 +417,11 @@ export default class App extends Base {
console.log('Error getting App Id :: ', err);
}

if (query.params.testtoken) {
process.env.TEST_TOKEN = query.params.testtoken;
} else {
logger.error('No Test Token Found in Parameter Initialization response...', 'getParameterInitializationValues');
}
// if (query.params.testtoken) {
// process.env.TEST_TOKEN = query.params.testtoken;
// } else {
// logger.error('No Test Token Found in Parameter Initialization response...', 'getParameterInitializationValues');
// }

if (query.params.macaddress) {
process.env.MACADDRESS = query.params.macaddress;
Expand Down
4 changes: 2 additions & 2 deletions src/LifeCycleHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ export default class LifecycleHistory {
const query = JSON.parse(event.data.query);

// Establishing a pubSub connection if FCA receives an intent in the navigateTo event with the following parameters.
if (query.params && query.params.appId && query.params.testtoken && query.params.macaddress) {
if (query.params && query.params.appId && query.params.macaddress) {
// PUBSUB_CONNECTION environment variable has a pubsub client instance and calls the isConnected function to check the Websocket status.
if (!process.env.PUBSUB_CONNECTION || (process.env.PUBSUB_CONNECTION && !process.env.PUBSUB_CONNECTION.isConnected())) {
process.env.APP_TYPE = query.params.appType ? query.params.appType.toLowerCase() : CONSTANTS.FIREBOLT_CONST;
process.env.CURRENT_APPID = query.params.appId;
process.env.MACADDRESS = query.params.macaddress;
process.env.TEST_TOKEN = query.params.testtoken;
// process.env.TEST_TOKEN = query.params.testtoken;
console.log('2507 test log - query param pubsubtoken discovery navigate', query.params.pubSubToken);
process.env.PUB_SUB_TOKEN = query.params.pubSubToken;
console.log('2507 test log - process env pubsubtoken discovery navigate', process.env.PUB_SUB_TOKEN);
Expand Down

0 comments on commit 5f7d391

Please sign in to comment.