如何调试
本文讲述如何使用 Authing 控制台调试 Pipeline 函数。
async function pipe(context, callback) {
const email = context.data.userInfo.email;
// 非邮箱注册方式
if (!email) {
return callback(null, context)
}
if (!email.endsWith("example.com")) {
return callback(new Error('Access denied.'));
}
return callback(null, context);
}



查看 log 日志 (BETA)


捕捉语法错误


Last updated
Was this helpful?