MCPcopy Create free account
hub / github.com/decaporg/decap-cms / credentialsPath

Function credentialsPath

packages/decap/src/config.ts:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 * ships the fallback only.
23 */
24export function credentialsPath(): string {
25 const base = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config');
26 return path.join(base, 'decap', 'credentials.json');
27}
28
29export function readCredentials(): Credentials | null {
30 try {

Callers 6

readCredentialsFunction · 0.85
writeCredentialsFunction · 0.85
deleteCredentialsFunction · 0.85
logoutFunction · 0.85
config.spec.tsFile · 0.85
login.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected