(options: LogoutCommandOptions)
| 32 | } |
| 33 | |
| 34 | export 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 | } |
no test coverage detected
searching dependent graphs…