style: prettier formatting
This commit is contained in:
@@ -81,10 +81,7 @@ function readCredentials(accountIndex: number): CredentialsFile | null {
|
||||
}
|
||||
}
|
||||
|
||||
function writeCredentials(
|
||||
accountIndex: number,
|
||||
creds: CredentialsFile,
|
||||
): void {
|
||||
function writeCredentials(accountIndex: number, creds: CredentialsFile): void {
|
||||
const credsPath = getCredentialsPath(accountIndex);
|
||||
const dir = path.dirname(credsPath);
|
||||
if (!fs.existsSync(dir)) {
|
||||
|
||||
@@ -219,7 +219,10 @@ export function updateTokenValue(index: number, newAccessToken: string): void {
|
||||
}
|
||||
tokens[index].token = newAccessToken;
|
||||
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',
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user