Avaya Client SDK

< Back to Package Overview

Custom Login/Logout Callbacks

There is ability to add custom callbacks for AuthenticationService

Add log in callback

callback({
    client = new AvayaRecordingClient(clientConfig);

    client.authenticationService.turnToUserModeCallbacks.add(function() {
        //add your custom callback
    });
});

Add log out callback

callback({
    client = new AvayaRecordingClient(clientConfig);

    client.authenticationService.turnToGuestModeCallbacks.add(function() {
        //add your custom callback
    });
});