MCPcopy Create free account
hub / github.com/serverless/serverless / removeRcUserSession

Function removeRcUserSession

packages/sf-core/src/utils/fs/index.js:619–623  ·  view source on GitHub ↗
(baseFilename)

Source from the content-addressed store, hash-verified

617 * no current user session.
618 */
619const removeRcUserSession = async (baseFilename) => {
620 const config = await getRcConfig(baseFilename)
621 config.userId = null
622 await saveRcFile(config, await getRcGlobalPath(baseFilename))
623}
624
625/**
626 * Remove .{baseFilename}rc Access Key V2

Callers 1

unAuthenticateMethod · 0.90

Calls 3

getRcConfigFunction · 0.90
saveRcFileFunction · 0.90
getRcGlobalPathFunction · 0.90

Tested by

no test coverage detected