Logout

To log a user out of your application, you need to clear their session data and redirect them to the FuturePass logout endpoint.

function logout() {
  localStorage.clear();
  window.location.href = `${identityProviderUri}/logout`;
}

Importance of Logging Out Before Initiating a New Login

It is crucial to log out before initiating a new login. If this step is skipped, a Dropped Pass error will occur. This happens because the demo does not check for existing sessions or tries silent_login (which is something we recommend every experience to do).

Last updated

© 2023 -> ♾️