Do not log token

Summary: Don't log it, otherwise it may end up in Scuba, we don't want that.

Reviewed By: antonk52

Differential Revision: D49187133

fbshipit-source-id: 38d4ea0801a9abbc463c23340e23f8b55e0d22f3
This commit is contained in:
Lorenzo Blasa
2023-09-13 04:06:58 -07:00
committed by Facebook GitHub Bot
parent 93d94c9fc3
commit dd6cef66f6

View File

@@ -302,15 +302,11 @@ async function start() {
} }
async function launch() { async function launch() {
let token: string | undefined; const token = await getAuthToken();
if (await hasAuthToken()) {
token = await getAuthToken();
}
const searchParams = new URLSearchParams({token: token ?? ''}); const searchParams = new URLSearchParams({token: token ?? ''});
const url = new URL(`http://localhost:${argv.port}?${searchParams}`); const url = new URL(`http://localhost:${argv.port}?${searchParams}`);
console.log('Go to: ' + chalk.green(chalk.bold(url)));
if (!argv.open) { if (!argv.open) {
return; return;
} }