style: prettier formatting
This commit is contained in:
@@ -81,10 +81,7 @@ function readCredentials(accountIndex: number): CredentialsFile | null {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function writeCredentials(
|
function writeCredentials(accountIndex: number, creds: CredentialsFile): void {
|
||||||
accountIndex: number,
|
|
||||||
creds: CredentialsFile,
|
|
||||||
): void {
|
|
||||||
const credsPath = getCredentialsPath(accountIndex);
|
const credsPath = getCredentialsPath(accountIndex);
|
||||||
const dir = path.dirname(credsPath);
|
const dir = path.dirname(credsPath);
|
||||||
if (!fs.existsSync(dir)) {
|
if (!fs.existsSync(dir)) {
|
||||||
|
|||||||
@@ -219,7 +219,10 @@ export function updateTokenValue(index: number, newAccessToken: string): void {
|
|||||||
}
|
}
|
||||||
tokens[index].token = newAccessToken;
|
tokens[index].token = newAccessToken;
|
||||||
logger.info(
|
logger.info(
|
||||||
{ index, masked: `${newAccessToken.slice(0, 20)}...${newAccessToken.slice(-4)}` },
|
{
|
||||||
|
index,
|
||||||
|
masked: `${newAccessToken.slice(0, 20)}...${newAccessToken.slice(-4)}`,
|
||||||
|
},
|
||||||
'Token value updated after OAuth refresh',
|
'Token value updated after OAuth refresh',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user