(profileToken?: string)
| 78 | * or 401 clear, profile tokens are ignored so stale credentials cannot be reused. |
| 79 | */ |
| 80 | export function resolveZooGatewaySessionToken(profileToken?: string): string | undefined { |
| 81 | if (_cachedToken) { |
| 82 | return _cachedToken |
| 83 | } |
| 84 | if (_sessionCleared) { |
| 85 | return undefined |
| 86 | } |
| 87 | return profileToken || undefined |
| 88 | } |
| 89 | |
| 90 | export function getCachedZooCodeUserInfo(): { name?: string; email?: string; image?: string } { |
| 91 | return { |
no outgoing calls
no test coverage detected