import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
socket: {
type: "app",
app: "socket",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.usesocket.com/api/user`,
headers: {
Authorization: `Bearer ${this.socket.$auth.api_key}`,
},
})
},
})
Socket uses API keys for authentication. When you connect your Socket account, Pipedream securely stores the keys so you can easily authenticate to Socket APIs in both code and no-code steps.