MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / logout

Function logout

src/lib/login-authenticator.ts:246–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 }
245
246 const logout = async (): Promise<void> => {
247 const credentialsFileData = readCredentialsFile()
248 delete credentialsFileData[profileEnvKey]
249 writeCredentialsFile(credentialsFileData)
250 }
251
252 const refreshToken = async (): Promise<void> => {
253 logger.debug('refreshing token')

Callers

nothing calls this directly

Calls 2

readCredentialsFileFunction · 0.85
writeCredentialsFileFunction · 0.85

Tested by

no test coverage detected