MCPcopy
hub / github.com/codeaashu/claude-code / OAuthStatusMessage

Function OAuthStatusMessage

src/components/ConsoleOAuthFlow.tsx:347–630  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

345 setLoginWithClaudeAi: (value: boolean) => void;
346};
347function OAuthStatusMessage(t0) {
348 const $ = _c(51);
349 const {
350 oauthStatus,
351 mode,
352 startingMessage,
353 forcedMethodMessage,
354 showPastePrompt,
355 pastedCode,
356 setPastedCode,
357 cursorOffset,
358 setCursorOffset,
359 textInputColumns,
360 handleSubmitCode,
361 setOAuthStatus,
362 setLoginWithClaudeAi
363 } = t0;
364 switch (oauthStatus.state) {
365 case "idle":
366 {
367 const t1 = startingMessage ? startingMessage : "Claude Code can be used with your Claude subscription or billed based on API usage through your Console account.";
368 let t2;
369 if ($[0] !== t1) {
370 t2 = <Text bold={true}>{t1}</Text>;
371 $[0] = t1;
372 $[1] = t2;
373 } else {
374 t2 = $[1];
375 }
376 let t3;
377 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
378 t3 = <Text>Select login method:</Text>;
379 $[2] = t3;
380 } else {
381 t3 = $[2];
382 }
383 let t4;
384 if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
385 t4 = {
386 label: <Text>Claude account with subscription ·{" "}<Text dimColor={true}>Pro, Max, Team, or Enterprise</Text>{false && <Text>{"\n"}<Text color="warning">[ANT-ONLY]</Text>{" "}<Text dimColor={true}>Please use this option unless you need to login to a special org for accessing sensitive data (e.g. customer data, HIPI data) with the Console option</Text></Text>}{"\n"}</Text>,
387 value: "claudeai"
388 };
389 $[3] = t4;
390 } else {
391 t4 = $[3];
392 }
393 let t5;
394 if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
395 t5 = {
396 label: <Text>Anthropic Console account ·{" "}<Text dimColor={true}>API usage billing</Text>{"\n"}</Text>,
397 value: "console"
398 };
399 $[4] = t5;
400 } else {
401 t5 = $[4];
402 }
403 let t6;
404 if ($[5] === Symbol.for("react.memo_cache_sentinel")) {

Callers

nothing calls this directly

Calls 3

logEventFunction · 0.85
handleSubmitCodeFunction · 0.70
getOauthAccountInfoFunction · 0.50

Tested by

no test coverage detected