MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / whoAmI

Method whoAmI

packages/cli-v3/src/apiClient.ts:52–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 async whoAmI() {
53 if (!this.accessToken) {
54 throw new Error("whoAmI: No access token");
55 }
56
57 return wrapZodFetch(WhoAmIResponseSchema, `${this.apiURL}/api/v2/whoami`, {
58 headers: {
59 Authorization: `Bearer ${this.accessToken}`,
60 "Content-Type": "application/json",
61 },
62 });
63 }
64
65 async getProject(projectRef: string) {
66 if (!this.accessToken) {

Callers 3

whoAmIFunction · 0.95
loginFunction · 0.95
isLoggedInFunction · 0.95

Calls 1

wrapZodFetchFunction · 0.85

Tested by

no test coverage detected