Authing DocsDocuments
Concept
workflow
Guides
Development Integration
Application integration
Concept
workflow
Guides
Development Integration
Application integration
Old Version
Guides
  • Quick start

  • Authenticate the user

  • Authority management for users

  • Authorization

  • Manage user accounts

  • Manage User Directory

  • Management Application

  • Become a source of federal authentication identity

  • Connect to an external identity provider (IdP)

  • Open up WeChat ecology
  • Migrate users to Authing

  • Management organization

  • Expandable capabilities

    • Use Webhook to monitor user events
    • Custom authentication process (Pipeline)

      • Create your first Pipeline function
      • Pipeline API Reference
      • Pipeline application scenario
      • Pipeline User Object
      • Pipeline Context Object
      • Use environment variables in Pipeline
      • Available Node Modules
      • How to debug
      • FAQ
      • Private deployment
  • Audit Log

  • Configure security information

  • Configure user pool information

  • Deployment plan

  • Frequently Asked Questions FAQs

  1. Guides
  2. /
  3. Expandable capabilities
  4. /
  5. Custom authentication process (Pipeline)
  6. /
  7. How to debug

¶ 如何调试

Update Time: 2025-02-18 09:00:47
Edit

本文讲述如何 Use Authing 控制台调试 Pipeline 函数。

在上一步,我们已经创建了第一个 Pipeline 函数,同时回顾一下该函数代码为:

该 Pipeline 函数的作用是只允许域名后缀为example.com的邮箱注册。

点击 Pipeline 函数的 debug 按钮:

点击此按钮打开调试窗口:Authing 会根据你的用户池生产相对应的测试数据。

¶ 查看 log 日志

需要 Use Authing Pipeline 全局内置函数 log 才能查看到运行日志,不是 console.log !

Use 函数编辑器内修改代码,在函数最前面加入一行 : 注意是 log 而非 console.log 。

log(context);

如果没有日志输出,请重试几次!

我们推荐先用调试器调试代码通过之后再将此函数发布到线上。

Prev: Available Node Modules Next: FAQ
  • 查看 log 日志

User identity management

Integrated third-party login
Mobile phone number flash check (opens new window)
Universal login form component
Custom authentication process

Enterprise internal management

Single Sign On
Multi-factor Authentication
Authority Management

Developers

Development Document
Framework Integration
Blog (opens new window)
GitHub (opens new window)
Community User Center (opens new window)

Company

400 888 2106
sales@authing.cn
16 / F, Block B, NORTH STAR CENTURY CENTER, Beijing(Total)
room 406, 4th floor, zone B, building 1, No. 200, Tianfu Fifth Street, Chengdu(branch)

Beijing ICP No.19051205-1

© Beijing Steamory Technology Co.