diff --git a/desktop/flipper-ui-browser/src/global.tsx b/desktop/flipper-ui-browser/src/global.tsx index 7f7b0a1ae..04989972a 100644 --- a/desktop/flipper-ui-browser/src/global.tsx +++ b/desktop/flipper-ui-browser/src/global.tsx @@ -17,11 +17,11 @@ declare global { theme: 'light' | 'dark' | 'system'; entryPoint: string; debug: boolean; - GRAPH_SECRET: string; - FLIPPER_APP_VERSION: string; - FLIPPER_SESSION_ID: string; - FLIPPER_UNIXNAME: string; - FLIPPER_AUTH_TOKEN: string; + graphSecret: string; + appVersion: string; + sessionId: string; + unixname: string; + authToken: string; }; flipperShowMessage?(message: {title?: string; detail?: string}): void; diff --git a/desktop/flipper-ui-browser/src/index.tsx b/desktop/flipper-ui-browser/src/index.tsx index ef24f2202..aabaa9203 100644 --- a/desktop/flipper-ui-browser/src/index.tsx +++ b/desktop/flipper-ui-browser/src/index.tsx @@ -56,7 +56,7 @@ async function start() { let token = providerParams.get('token'); if (!token) { console.info('[flipper-client][ui-browser] Get token from HTML instead'); - token = window.flipperConfig.FLIPPER_AUTH_TOKEN; + token = window.flipperConfig.authToken; if (!token || token === 'FLIPPER_AUTH_TOKEN_REPLACE_ME') { console.warn( '[flipper-client][ui-browser] Failed to get token from HTML', diff --git a/desktop/static/index.web.dev.html b/desktop/static/index.web.dev.html index b90b3afd0..f9c5324e3 100644 --- a/desktop/static/index.web.dev.html +++ b/desktop/static/index.web.dev.html @@ -18,11 +18,11 @@ theme: 'light', entryPoint: 'flipper-ui-browser/src/index-fast-refresh.bundle?platform=web&dev=true&minify=false', debug: true, - GRAPH_SECRET: 'GRAPH_SECRET_REPLACE_ME', - FLIPPER_APP_VERSION: 'FLIPPER_APP_VERSION_REPLACE_ME', - FLIPPER_SESSION_ID: 'FLIPPER_SESSION_ID_REPLACE_ME', - FLIPPER_UNIXNAME: 'FLIPPER_UNIXNAME_REPLACE_ME', - FLIPPER_AUTH_TOKEN: 'FLIPPER_AUTH_TOKEN_REPLACE_ME', + graphSecret: 'GRAPH_SECRET_REPLACE_ME', + appVersion: 'FLIPPER_APP_VERSION_REPLACE_ME', + sessionId: 'FLIPPER_SESSION_ID_REPLACE_ME', + unixname: 'FLIPPER_UNIXNAME_REPLACE_ME', + authToken: 'FLIPPER_AUTH_TOKEN_REPLACE_ME', }