MCPcopy
hub / github.com/faressoft/terminalizer / removeToken

Function removeToken

utility.js:299–311  ·  view source on GitHub ↗

* Remove a registered token

()

Source from the content-addressed store, hash-verified

297 * Remove a registered token
298 */
299function removeToken() {
300
301 var globalDirPath = getGlobalDirectory();
302 var tokenPath = di.path.join(globalDirPath, 'token.txt');
303
304 // The file doesn't exist
305 if (!isFile(tokenPath)) {
306 return;
307 }
308
309 di.fs.unlinkSync(tokenPath);
310
311}
312
313/**
314 * Get the name of the current OS

Callers

nothing calls this directly

Calls 2

getGlobalDirectoryFunction · 0.85
isFileFunction · 0.85

Tested by

no test coverage detected