Passing Custom Parameter to Logout Endpoint - Using Auth0 React

Last Updated: Sep 5, 2024

Overview

This article addresses the following question:

  • Can a custom parameter be passed to the logout endpoint using Auth0 React?

Applies To

  • Custom Parameter
  • Auth0 React

Solution

It is possible to pass custom parameters to the logout endpoint. This is mentioned on this link.

The custom parameters will not impact how Auth0 handles the logout unless they are one of the supported parameters for the endpoint (see below). NOTE: The parameters specified here can override what is sent by the SDK automatically if using the same exact parameter name, so care should be taken not to utilize existing parameter names to avoid unexpected behavior.

Supported parameters for the logout endpoint are listed here.

If using a reverse proxy setup, the custom parameters could be potentially used for a custom implementation on the proxy’s side.