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

Function hasToken

src/cli/auth-session.ts:573–575  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

571}
572
573function hasToken(value: unknown): value is string {
574 return typeof value === 'string' && value.trim().length > 0;
575}
576
577async function sleep(ms: number): Promise<void> {
578 await new Promise((resolve) => setTimeout(resolve, ms));

Callers 8

resolveRemoteAuthFunction · 0.85
loginWithDeviceAuthFunction · 0.85
readCliSessionFunction · 0.85
refreshAgentTokenFunction · 0.85
pollDeviceAuthFunction · 0.85
assertDeviceAuthStartFunction · 0.85
shouldUseCloudAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected