logout_token
The Logout Token module enhances Drupal core by providing an endpoint that allows developers to obtain the logout token during the initial user login through the user login endpoint. Unlike the core behavior, this module ensures that developers can retrieve the logout token at any time during the user session. This capability becomes particularly useful in scenarios where users reset their passwords but are unable to log out due to the logout token being regenerated alongside it. In such cases, the module's endpoint becomes a valuable tool for obtaining the user's logout token and handling secure logout operations effectively.
Key Features
- Provides an endpoint to fetch the logout token during user sessions.
- Compatible with Drupal 8, 9, and 10.
- Enhances security by enabling secure logout handling.
Installation
Follow the standard installation procedure
How to use
Once the module is enabled, simply use the following endpoint to obtain the logout token:
/session/logout/token