Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvasilas committed Oct 18, 2024
1 parent a643a3e commit b657bfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/auth/Vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AuthInfo from './AuthInfo';
* items used to calculate signature on chunks if streaming auth
*/
function vaultSignatureCb(
err: Error | null,
err: Error | any | null,
authInfo: { message: { body: any } },
log: Logger,
callback: (err: Error | null, data?: any, results?: any, params?: any) => void,
Expand All @@ -24,6 +24,9 @@ function vaultSignatureCb(
if (err) {
log.debug('received error message from auth provider',
{ errorMessage: err });
if (err.code === 'InvalidAccessKeyId') {
return callback(errors.InvalidAccessKeyId);
}
return callback(err);
}
log.debug('received info from Vault', { authInfo });
Expand Down

0 comments on commit b657bfe

Please sign in to comment.