load sf credentials from cache dir
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user