@inrupt/solid-client-authn-node
    Preparing search index...

    Function logout

    • Performs an RP-initiated logout at the OpenID Provider associated to a user session using the provided token set. After this has completed, the user will be logged out of their OpenID Provider. This terminates their current browsing session on any active Solid application.

      Parameters

      • tokenSet: SessionTokenSet

        The set of tokens associated to the session being logged out. This must contain a valid ID token.

      • redirectHandler: (url: string) => void

        Function to redirect the user to the logout URL

      • OptionalpostLogoutUrl: string

        An optional URL to be redirected to by the OpenID Provider after logout has been completed

      Returns Promise<void>

      A Promise that resolves once the logout process is initiated

      unreleased

      // Express.js logout endpoint
      app.get("/logout", async (req, res) => {
      const tokenSet = ...;
      await logout(
      tokenSet,
      // Provide an express.js-specific redirect handler
      (url) => {
      res.redirect(url);
      }
      );
      });