MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / canAuthAccessThread

Method canAuthAccessThread

apps/web/services/session/index.ts:91–104  ·  view source on GitHub ↗
(authId: string, threadId: string)

Source from the content-addressed store, hash-verified

89 }
90
91 static async canAuthAccessThread(authId: string, threadId: string) {
92 return await prisma.auths.findFirst({
93 where: {
94 id: authId,
95 users: {
96 some: {
97 account: {
98 channels: { some: { threads: { some: { id: threadId } } } },
99 },
100 },
101 },
102 },
103 });
104 }
105}

Callers 1

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected