You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that LogoutUrlGenerator fetches the token from the session, which counts as a session usage. If the current route is stateless and the firewall is a regular stateful firewall, this will generate the exception: Session was used while the request was declared stateless.
This only occurs if there is a token in the session, as the SecurityDataCollector only generates the logout path if there is a token in the storage.
How to reproduce
Configure a regular (stateful) firewall
Make sure there is a token in the session (e.g. by visiting a login route)