Introduction
The 'AuthProvider' module in OneEntry Platform facilitates user authentication and registration through various methods, such as email. By using the AuthProvider object, developers can handle user registration, including sending activation codes when necessary. The system supports diverse data types for form attributes, allowing comprehensive user data management. Key functionalities include user authentication, token management (access and refresh tokens), password changes, and logout. Additionally, it provides methods to manage authentication providers and retrieve specific details by marker or language code, ensuring secure and efficient user management across applications.
signUp
User registration (โ๏ธFor providers with user activation, an activation code is sent through the corresponding user notification method)
generateCode
Getting the code to activate the user.
oauthSignUp
User registration (authorization) via OAUTH. It returns a Promise that resolves to an IAuthEntity object.
checkCode
Checking the user activation code.
auth
Allows you to authenticate users.
refresh
Update user tokens.
logout
User account logout. ๐ This method requires authorization"}>authorization.
logout
User account logout. ๐ This method requires authorization"}>authorization.
changePassword
User password change (only for activated account tariffs with Activation feature enabled).
getAuthProviders
Get all auth providers objects.
getActiveSessionsByMarker
Getting active user sessions data. It returns a Promise promise that resolves to active user sessions data object.
getAuthProviderByMarker
Get one auth provider object by marker. It returns a Promise that resolves to an IAuthProvidersEntity object.