Skip to main content

Autentication

DEPRECATION NOTICE

Our Cordova plugin for integrating our SDK is now deprecated. We highly recommend transitioning to our SDK using Swift Package Manager (SPM) for iOS and Gradle for Android. Please implement a custom wrapper to interface directly with the SDK methods.

For Ionic users, you can transition to using Capacitor, which supports working with native libraries seamlessly. This change will ensure better performance and more direct access to the latest SDK features.

Authentication#

Authentication verifies that the provided user token is correct and, therefore, it can initiate the chat.

meetinglawyers.authenticate(
{{USER_ID}}, // Ex: 'manel.roca@meetinglawyers.com'
function() {
// Authentication OK: can open the list
},
function(err) {
// Authentication Error
}
);

The result of the authentication does not return any value beyond the same verification of success or failure of the operation.

From a successful response, we can consider that the user is authenticated and MeetingLawyers environment is ready to show the active conversations of the user.

Next steps#