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

Method canAuthAccessCommunity

apps/web/services/session/index.ts:78–89  ·  view source on GitHub ↗
(authId: string, communityId: string)

Source from the content-addressed store, hash-verified

76 }
77
78 static async canAuthAccessCommunity(authId: string, communityId: string) {
79 return await prisma.auths.findFirst({
80 where: {
81 id: authId,
82 users: {
83 some: {
84 account: { id: communityId },
85 },
86 },
87 },
88 });
89 }
90
91 static async canAuthAccessThread(authId: string, threadId: string) {
92 return await prisma.auths.findFirst({

Callers 1

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected