MCPcopy Index your code
hub / github.com/callstack/agent-device / renderAuthStatus

Function renderAuthStatus

src/cli/commands/auth.ts:44–56  ·  view source on GitHub ↗
(status: ReturnType<typeof summarizeCliSession>)

Source from the content-addressed store, hash-verified

42};
43
44function renderAuthStatus(status: ReturnType<typeof summarizeCliSession>): string {
45 if (!status.authenticated) return 'Not authenticated.';
46 const lines = [
47 'Authenticated with cloud CLI session.',
48 `cloud=${status.cloudBaseUrl}`,
49 `session=${status.sessionId}`,
50 status.workspaceId ? `workspace=${status.workspaceId}` : null,
51 status.accountId ? `account=${status.accountId}` : null,
52 status.expiresAt ? `expiresAt=${status.expiresAt}` : null,
53 status.expired ? 'status=expired' : null,
54 ];
55 return lines.filter((line): line is string => Boolean(line)).join('\n');
56}

Callers 1

authCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected