From 97e6c6499b8d60a5cda5adae4005bb6646ed1ffb Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Tue, 29 Oct 2024 16:01:08 +0100 Subject: [PATCH] Remove gitToken from parameters --- node/landing-page/src/App.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/node/landing-page/src/App.tsx b/node/landing-page/src/App.tsx index e0cf4b60..e52a11bd 100644 --- a/node/landing-page/src/App.tsx +++ b/node/landing-page/src/App.tsx @@ -49,7 +49,6 @@ function App(): JSX.Element { const [logoutUrl, setLogoutUrl] = useState(); const [gitUri, setGitUri] = useState(); - const [gitToken, setGitToken] = useState(); const [artemisToken, setArtemisToken] = useState(); const [autoStart, setAutoStart] = useState(true); @@ -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'); @@ -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('-----------------------------------'); @@ -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);