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

Method canAuthAccessChannel

apps/web/services/session/index.ts:65–76  ·  view source on GitHub ↗
(authId: string, channelId: string)

Source from the content-addressed store, hash-verified

63 }
64
65 static async canAuthAccessChannel(authId: string, channelId: string) {
66 return await prisma.auths.findFirst({
67 where: {
68 id: authId,
69 users: {
70 some: {
71 account: { channels: { some: { id: channelId } } },
72 },
73 },
74 },
75 });
76 }
77
78 static async canAuthAccessCommunity(authId: string, communityId: string) {
79 return await prisma.auths.findFirst({

Callers 1

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected