File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,7 +226,9 @@ async function loginWithAppPairing(context: CommandContext): Promise<string> {
226226 const keyPair = generateAppPairingKeyPair ( ) ;
227227 const publicKey = keyPair . publicKeyBase64 ;
228228 const secretKey = keyPair . secretKey ;
229- const emoji = formatEmojiHash ( keyPair . publicKeyBytes ) ;
229+ const emoji = shouldShowEmojiHash ( )
230+ ? formatEmojiHash ( keyPair . publicKeyBytes )
231+ : null ;
230232
231233 const initial = await requestAppPairing ( context . env , appId , publicKey ) ;
232234
@@ -295,6 +297,14 @@ function formatEmojiHash(publicKeyBytes: Uint8Array): string | null {
295297 return emojis . join ( " " ) ;
296298}
297299
300+ function shouldShowEmojiHash ( ) : boolean {
301+ const value = process . env [ "BEE_EMOJI_HASH" ] ?. trim ( ) . toLowerCase ( ) ;
302+ if ( ! value ) {
303+ return true ;
304+ }
305+ return ! [ "0" , "false" , "off" , "no" ] . includes ( value ) ;
306+ }
307+
298308async function pollForAppToken ( opts : {
299309 env : Environment ;
300310 appId : string ;
You can’t perform that action at this time.
0 commit comments