Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
savedPassword = result.value
}
return await result.value
}
return ''
} catch (_) {
return ''
}
})
})
}
}
/* eslint-disable */
const _authPassword = SSH2Stream.prototype.authPassword
SSH2Stream.prototype.authPassword = async function (username, passwordFn: any) {
_authPassword.bind(this)(username, await passwordFn())
} as any
if (result.remember) {
savedPassword = result.value
}
return await result.value
}
return ''
} catch (_) {
return ''
}
})
})
}
}
/* eslint-disable */
const _authPassword = SSH2Stream.prototype.authPassword
SSH2Stream.prototype.authPassword = async function (username, passwordFn: any) {
_authPassword.bind(this)(username, await passwordFn())
} as any