In general, the authentication API allows a developer to control all aspects of a user's identity. It has endpoints for logging in, logging out, and using APIs, among other things. This login endpoint is used to authenticate a user. Either the email or the phone number can be used as a login identifier, which means that the user has two types of login process, email
and phone
.The login endpoint has been implemented in the Login Web Component, and It's all setup to save developer's time and effort. Payload#
Response#
Usage#
In the case of using the phone number as a
login type, the developer can use the example below to receive the data, and redirect the user accordingly.
Events#
The login process may trigger two events during the login process, onCodeSent and onCodeNotSent.onCodeSent#
This event will be triggered when the login process is completed successfully and the loing code has been sent.onCodeNotSent#
This event will be triggered when a failure occurs in receiving and setting the access code. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20