load sf credentials from cache dir

This commit is contained in:
Robert Dyer
2024-12-12 23:16:21 -06:00
parent b0d3bce84a
commit 7f841deb7c
+2 -1
View File
@@ -30,7 +30,8 @@ const getCredentials = async () => {
const loadCredentials = () => { const loadCredentials = () => {
try { try {
return fs.readFileSync('simplefin.credentials', 'utf8'); const cache = process.env.ACTUAL_CACHE_DIR || './cache';
return fs.readFileSync(cache + '/simplefin.credentials', 'utf8');
} catch (err) { } catch (err) {
return undefined; return undefined;
} }