This project is not covered by Drupal’s security advisory policy.
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
Project information
63 sites report using this module
- Created by sraseef on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

