MCPcopy
hub / github.com/triggerdotdev/trigger.dev / logout

Function logout

packages/cli-v3/src/commands/logout.ts:34–45  ·  view source on GitHub ↗
(options: LogoutCommandOptions)

Source from the content-addressed store, hash-verified

32}
33
34export async function logout(options: LogoutCommandOptions) {
35 const config = readAuthConfigProfile(options.profile);
36
37 if (!config?.accessToken) {
38 logger.info(`You are already logged out [${options.profile}]`);
39 return;
40 }
41
42 deleteAuthConfigProfile(options.profile);
43
44 logger.info(`Logged out of Trigger.dev [${options.profile}]`);
45}

Callers 1

logoutCommandFunction · 0.70

Calls 3

readAuthConfigProfileFunction · 0.85
deleteAuthConfigProfileFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…