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

Function getSlackAccessToken

apps/web/services/accounts/slack.test.ts:19–40  ·  view source on GitHub ↗
(
  code: string,
  clientId: string,
  clientSecret: string
)

Source from the content-addressed store, hash-verified

17};
18const eventNewIntegration = async (event: any) => {};
19const getSlackAccessToken = async (
20 code: string,
21 clientId: string,
22 clientSecret: string
23) => {
24 return {
25 body: {
26 ok: true,
27 access_token: v4(),
28 team: {
29 id: v4(),
30 },
31 bot_user_id: v4(),
32 scope: v4(),
33 authed_user: {
34 access_token: v4(),
35 scope: v4(),
36 id: v4(),
37 },
38 },
39 };
40};
41
42describe('newSlackIntegration', () => {
43 const store = {

Callers 1

newSlackIntegrationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected