MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / resolveZooGatewaySessionToken

Function resolveZooGatewaySessionToken

src/services/zoo-code-auth.ts:80–88  ·  view source on GitHub ↗
(profileToken?: string)

Source from the content-addressed store, hash-verified

78 * or 401 clear, profile tokens are ignored so stale credentials cannot be reused.
79 */
80export 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
90export function getCachedZooCodeUserInfo(): { name?: string; email?: string; image?: string } {
91 return {

Callers 4

constructorMethod · 0.90
ensureAuthenticatedMethod · 0.90
getZooGatewayModelsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected