Add Your SSO Logout Logic
This article is about implementing SSO for Emplifi Ratings & Reviews widgets. For implementing SSO for the Emplifi platform, see Single Sign-on (SSO).
To complete this step, you'll fill out the logout
function to log out the current user. The logout
function has no parameters, no return value, and no callback.
Inside the
logout
function, add code that tells your authentication system to log out the currently logged-in user.How you do this depends on your authentication system. For example, you could stay on the PDP and make an asynchronous call, such as an ajax call, to log the user out. If your implementation sends the user to another page, be sure to return to the PDP with all query parameters in place so that the review form launches.