MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAccessToken

Function getAccessToken

src/commands/assistant/assistant.tsx:94–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 const runtimeAuth = await resolveManagedRemoteRuntimeAuth()
94 const getAccessToken = (): string => {
95 const accessToken = runtimeAuth.getAccessToken()
96 if (!accessToken) {
97 throw new Error('Managed remote authentication is unavailable.')
98 }
99 return accessToken
100 }
101
102 setKairosActive(true)
103 setUserMsgOptIn(true)

Callers 3

createBridgeSessionFunction · 0.50
doRefreshFunction · 0.50
getOAuthTokenFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected