import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
have_i_been_pwned: {
type: "app",
app: "have_i_been_pwned",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://haveibeenpwned.com/api/v3/subscribeddomains`,
headers: {
"hibp-api-key": `${this.have_i_been_pwned.$auth.api_key}`,
},
})
},
})
Have I Been Pwned uses API keys for authentication. When you connect your Have I Been Pwned account, Pipedream securely stores the keys so you can easily authenticate to Have I Been Pwned APIs in both code and no-code steps.