Purpose:

The library automatically manages logout process for you. Identity  will:

  • Clear local session data and cookies
  • Clear session cache
  • Manage OAuth logout process regarding token revocation

Complete example

Find below how your entire page should appear. The example will logout only if the user is logged. Then it will check if the user is no longer logged