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. Pipeline User Object

¶ User object

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

The user object saves various data of the current user, as well as methods for adding user-defined fields and user-defined token fields.

There is no user object in the Pre-Register Pipeline.

¶ Attribute

Attribute nameValue typeDescription
idstringUser ID
usernamestringusername
emailstringemail
emailVerifiedbooleanIs the mailbox verified
phonestringphone number
phoneVerifiedbooleanIs the phone number verified
photostringAvatar link
nicknamestringnickname
genderstringgender
signedUpstringRegistration time, the format is 2020-02-07T04:29:40.877Z
lastLoginstringLast login time, the format is 2020-02-07T04:29:40.877Z
oauthstringSocial login information
registerSourcestringMethod to register
blockedbooleanIs it blocked
companystringCompany name
browserstringThe browser used by the user
devicestringThe device used by the user
countrystringcountry
regionstringregion
addressstringaddress

¶ Method

Method NameDescriptionSample code
addCustomDataAdd user-defined fields. You need to define preset user-defined fields at the user pool level before setting them for users in the Pipeline.user.addCustomData("KEY", "VALUE")
addTokenThis method is not recommended,This method is currently limited to users who are compatible with older versions of Authing. Please use the addIdToken below. Calling this method can add custom fields to the token when issuing the token to the user. The new fields will appear under the token.payload.data object. The length of VALUE cannot exceed 100 characters. Otherwise, the token will be too long. To learn how to verify and decrypt Token, please refer to Verify Token。This interface is only available in the POST_AUTHENTICATION(after login) Pipeline.user.addToken('KEY', 'VALUE')
addIdTokenSetting idToken custom fields can also be used to replace the original idToken content. This interface is only available in Pre-OIDCTokenIssued Pipeline.user.addIdToken("KEY","VALUE")
Prev: Pipeline application scenario Next: Pipeline Context Object
  • Attribute
  • Method

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.