MCPcopy
hub / github.com/FlowiseAI/Flowise / getSSOTokenCache

Method getSSOTokenCache

packages/server/src/CachePool.ts:62–74  ·  view source on GitHub ↗
(ssoToken: string)

Source from the content-addressed store, hash-verified

60 }
61
62 async getSSOTokenCache(ssoToken: string): Promise<any | undefined> {
63 if (process.env.MODE === MODE.QUEUE) {
64 if (this.redisClient) {
65 const serializedValue = await this.redisClient.get(`ssoTokenCache:${ssoToken}`)
66 if (serializedValue) {
67 return JSON.parse(serializedValue)
68 }
69 }
70 } else {
71 return this.ssoTokenCache[ssoToken]
72 }
73 return undefined
74 }
75
76 async deleteSSOTokenCache(ssoToken: string) {
77 if (process.env.MODE === MODE.QUEUE) {

Callers 1

ssoSuccessFunction · 0.80

Calls 2

parseMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected