Rename constants

Summary: After the move, let's rename the constants to make them match our code standards.

Reviewed By: aigoncharov

Differential Revision: D51307087

fbshipit-source-id: 4e44e956fd88abd3e8359fe94fa4e31d17f61a55
This commit is contained in:
Lorenzo Blasa
2023-11-14 10:53:09 -08:00
committed by Facebook GitHub Bot
parent 49abb4dd41
commit 9166939214
4 changed files with 17 additions and 17 deletions

View File

@@ -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;

View File

@@ -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',