View Source Code

Auth Email

Verify and Add Email and Password to existing user

Verify a user's email address and register it with an existing account. Requires a password.

Request

  • userToken
    string
  • email
    string
  • password
    string
  • oldPassword
    nullable string
  • verificationToken
    string
  • code
    string

Response

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.auth_email.verify_add_email_pass({
  // Request body
});