使用环境变量
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
async function pipe(user, context, callback) {
const webhook = env.LARK_WEBHOOK
await axios.post(webhook, {
title: "New User Registered - From Authing Rules Pipeline",
text: `
用户信息:
ID: ${user._id}
昵称:${user.username}
注册方式:${user.registerMethod}
邮箱:${user.email}
手机号:${user.phone}
UA: ${user.device}
用户池 ID: ${user.registerInClient}
`
})
return callback(null, user, context)
}