JMap.User.logout
Logout function. Make a call to the server to invalidate the session id.
If an error occurs, 2 differents string message can be returned :
// Close the user session client and server sideJMap.User .logout() .then(() => { console.log(`User has been logout`) }) Copy
// Close the user session client and server sideJMap.User .logout() .then(() => { console.log(`User has been logout`) })
JMap.User.logout
Logout function. Make a call to the server to invalidate the session id.
If an error occurs, 2 differents string message can be returned :