Skip to content

Commit

Permalink
Remove gitToken from parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
iyannsch committed Oct 29, 2024
1 parent ec30193 commit 97e6c64
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions node/landing-page/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function App(): JSX.Element {
const [logoutUrl, setLogoutUrl] = useState<string>();

const [gitUri, setGitUri] = useState<string>();
const [gitToken, setGitToken] = useState<string>();
const [artemisToken, setArtemisToken] = useState<string>();

const [autoStart, setAutoStart] = useState<boolean>(true);
Expand Down Expand Up @@ -96,14 +95,6 @@ function App(): JSX.Element {
}
}

// Get gitToken parameter from URL.
if (urlParams.has('gitToken')) {
const gitToken = urlParams.get('gitToken');
if (gitToken) {
setGitToken(gitToken);
}
}

// Get artemisToken parameter from URL.
if (urlParams.has('artemisToken')) {
const artemisToken = urlParams.get('artemisToken');
Expand Down Expand Up @@ -150,7 +141,6 @@ function App(): JSX.Element {
console.log('Configured app definition: ' + config.appDefinition);
console.log('Initial app definition: ' + initialAppDefinition);
console.log('Git URI: ' + gitUri);
console.log('Git Token: ' + gitToken);
console.log('Artemis Token: ' + artemisToken);
console.log('-----------------------------------');

Expand All @@ -159,7 +149,7 @@ function App(): JSX.Element {
return;
}

if (selectedAppDefinition && gitUri && gitToken) {
if (selectedAppDefinition && gitUri) {
console.log('Checking auth, setting autoStart to true and starting session');
authenticate();
setAutoStart(true);
Expand Down

0 comments on commit 97e6c64

Please sign in to comment.