import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_authenticator: {
type: "app",
app: "microsoft_authenticator",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://microsoft-authenticator.p.rapidapi.com/new_v2/`,
headers: {
"x-rapidapi-host": `microsoft-authenticator.p.rapidapi.com`,
"x-rapidapi-key": `${this.microsoft_authenticator.$auth.rapid_api_key}`,
},
})
},
})
Microsoft Authenticator uses API keys for authentication. When you connect your Microsoft Authenticator account, Pipedream securely stores the keys so you can easily authenticate to Microsoft Authenticator APIs in both code and no-code steps.