Authentication Registration

Authentification Flow

This authentication process consists of two stages: registration and login. Both stages follow the same general flow, with the main difference being the parameters and functions called on the client side. Below is the flow for the registration stage:

1. Authentication Registration



Below is the JavaScript API code to call the registration function.

const result = await JwtEAuth.userRegister(user,authenticator);
if (result.status == "success") {
    //.. success 
} else {
    //.. error 
}
const user = {
    userId: user_id_value,
    userName: user_name_value,
    userDisplayName: display_name_value,
    userEmail: user_email_value
};
const authenticator = {
    authenticator: "platform" // "cross-platform"
} 
{
"status": "success", 
"code": "cr-220", // See the complete status codes in the response and status codes section.
"msg": "resgistration success"
}

Authenticator: "Platform" vs "Cross-Platform"

Platform: A platform refers to a specific operating system or environment in which an application or software runs. For example, Windows, macOS, Android, and iOS are all considered platforms. In the context of authentication systems, a "platform" may refer to the particular operating system or device where the authentication process or app is implemented. This means the software is designed to function only within a specific environment, like a mobile app for iOS or a desktop application for Windows.

Cross-Platform: Cross-platform refers to the capability of an application or software to run across multiple platforms without needing significant modifications. In authentication systems, a cross-platform solution is one that can be used across various operating systems (like Windows, macOS, Linux, Android, iOS, etc.) and devices (such as smartphones, tablets, and desktops). This allows the same authentication process or software to work seamlessly on different platforms, providing flexibility and wide accessibility for users regardless of their chosen device or OS.

In summary, platform implies a single environment, whereas cross-platform refers to the ability to operate across multiple environments, making the solution more versatile and widely accessible.s

📅January 13, 2025