# User management
By using the user registration interface provided by "apifm", you can easily implement user registration in your APP, applet, website, and embedded device, and then you can easily implement user management in the "apifm" background.
Currently "apifm" supports the following registration methods. Different registration methods will record different source fields in the background user management:
1. WeChat Mini Program registration, source is 0;
2. Mobile phone number + SMS verification code registration, source is 1;
3. WeChat public account registration, source is 2;
4. Alipay Mini Program registration, source is 3;
5. Username + password registration, source is 4;
6. Email + email verification code registration, source is 5;
7. QQ one-click login registration, source is 6;
8. WeChat integrates one-click registration, source is 7;
9. Toutiao/Douyin Mini Program registration, source is 8;
10. Create a new user in the background, the source is 9;
For different registration methods, please select the corresponding registration interface in the interface document to implement docking; the same applies to login;
# Member level
The "apifm" background supports adding membership levels, such as: ordinary member/gold member/diamond member, etc.;
For different membership levels, you can set them to automatically upgrade after spending a certain amount;
You can also set up a direct purchase for a certain type of membership, such as: 10 yuan/month; 100 yuan/year, similar to iQiyi membership, and you can set up automatic renewal upon expiration (if there is a balance);
Under the "apifm" mall module, you can set different members to enjoy certain discounts on shopping, similar to JD Plus members;
# Authentication system
Users rely on tokens to manage their own data, so in the api interface document, any interface that involves reading and operating the user's own data requires you to pass the token parameter;
Token can be obtained through any login interface. After successful login, the interface will return the token data. Please save it properly and pass the token to the interface related to the user in the future.
The token itself does not contain any data. When the login is successful, the logged-in user's information will be saved on the server and numbered with the token. Then, after the interface detects the token, it will query the user information on the server through this token. If it exists, it is considered that this operation is legally authorized by the user.