Login Process
The login system supports multiple login methods, including personal and business logins, email/phone number logins, password/verification code logins, and third-party login services. Additionally, it
Features
Personal/Business Login: Supports login needs for both personal and business users.
Email/Phone Number Login: Users can choose to log in using either email or phone number.
Password/Verification Code Login: Provides both password login and verification code login methods.
Third-Party Login: Supports third-party logins from Google, Facebook, Twitter, Telegram, Apple, and MetaMask.
Google MFA Authentication: Enhances account security by supporting Google MFA authentication.
Relevant Interfaces
Login Interface
Endpoint:
/login/customer.app.CustomerWebApiService.loginFunction: Handles user login requests.
Note: The login password must be transmitted in MD5 encrypted format; plain text transmission is prohibited.
Country/Region Query Interface
Endpoint:
/global/config.app.AppDictDubboService.getCountryListByParentCodeFunction: Queries the country and region list based on country codes.
Supported Countries for Business Account Opening
Endpoint:
/global/customer.app.KycWebApiService.findCompanyCountryFunction: Retrieves the list of countries that support business account openings.
Customer Information Verification Interface
Endpoint:
/global/customer.app.CustomerWebApiService.checkStatusFunction: Checks whether customer information is valid.
Send Verification Code Interface
Endpoint:
/global/message.app.VerificationApiService.verifyCodeSendFunction: Sends a verification code to the user.
Check Google MFA Status Interface
Endpoint:
/global/customer.app.CustomerWebApiService.checkGoogleMFAStatusFunction: Checks if the customer has enabled Google MFA.
Interface Usage Instructions
Before calling the interfaces, please ensure you have carefully read the relevant interface documentation. Below are specific instructions for different login methods:
1. Password Login
Email Login

Login
Use the login interface, passing in
loginName,loginPwd, andtypeparameters.Note: The login password must be MD5 encrypted before transmission; plain text transmission is prohibited.
Phone Number Login

Get Country Code Data
Call the country/region query interface to obtain the country code data.
Login
Use the login interface, passing in
loginName,loginPwd,type, andphoneAreaparameters. Refer to the interface documentation for specific parameter descriptions.
2. Verification Code Login

Verify Customer Information
Use the customer information verification interface to ensure the account exists.
Send Verification Code
Call the send verification code interface to obtain a ticket for successful code sending (
sendToken).
Complete Login
Use the login interface, passing in
loginName,type,phoneArea,sendToken, andverifyCodeparameters. Refer to the interface documentation for specific parameter descriptions.
Note:
Account Verification: The account must be verified before sending the verification code.
Verification Code Ticket: The
sendTokenparameter is the ticket returned after successfully sending the verification code, used to verify the validity of the code.
3. Google MFA Authentication

Check if the User Has Enabled Google MFA
Use the check Google MFA status interface, which will return an integer indicating the user's Google MFA status; a value greater than 0 means enabled, otherwise it means disabled.
Login Interface (with Google MFA support)
Use the login interface, passing in
loginName,type,phoneArea, andgoogleCodeparameters. Refer to the interface documentation for specific parameter descriptions.
Note:
googleCodeis the 6-digit code obtained from Google Authenticator, used for MFA verification.
Frequently Asked Questions
What is the validity period of the token returned after a successful login?
Token Validity: The token returned after a successful login is valid for 2 hours.
Automatic Renewal: If a request is received within the 2-hour validity period, the token will be automatically renewed for another 2 hours.
Last updated