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

Function hasAuthFn

packages/serializers/src/account.ts:24–32  ·  view source on GitHub ↗
(account: any)

Source from the content-addressed store, hash-verified

22}
23
24function hasAuthFn(account: any) {
25 if (account.slackAuthorizations?.length) {
26 return true;
27 }
28 if (account.discordAuthorizations?.length) {
29 return true;
30 }
31 return false;
32}
33
34export function serializeAccount(account?: any): SerializedAccount {
35 const {

Callers 1

serializeAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected