logout configuration documented for gesdinet_jwt_refresh_token triggers “Unrecognized option” error
Describe the bug The bundle’s documentation shows a logout configuration block that allows removing cookies during logout:
gesdinet_jwt_refresh_token:
logout:
delete_cookies: ["refresh_token", "session_cookie"]
However, adding this block causes Symfony to raise an “Unrecognized option logout” error. It appears the configuration tree shipped with the bundle does not define the logout node, so the documented example cannot be used.
Steps to Reproduce
- Configure the bundle as shown in the documentation:
gesdinet_jwt_refresh_token:
refresh_token_class: App\Domain\Auth\Model\RefreshToken
single_use: false
ttl: 2592000
firewall: api
token_parameter_name: refresh_token
logout:
delete_cookies: ["refresh_token"]
- Clear the Symfony cache or run any command that processes bundle configuration (e.g., bin/console cache:clear). Actual Result Symfony throws:
Unrecognized option "logout" under "gesdinet_jwt_refresh_token". Available options are "cookie", "doctrine_mappings", "entity_manager", "firewall", "logout_firewall", "manager_type", "object_manager", "refresh_token_class", "refresh_token_entity", "return_expiration", "return_expiration_parameter_name", "single_use", "token_parameter_name", "ttl", "ttl_update", "user_checker", "user_identity_field", "user_provider".
Additional Context
- Symfony: 6.4 (PHP 8.3)
- Bundle version: 1.5
@jgniecki could you try this with master version and confirm if it is reproducible? Thanks
Just read this to have a confirm : https://github.com/markitosgv/JWTRefreshTokenBundle/commit/9234911ebcfe9d67b8f2650e41472c89ce2e89a7#comments
Just read this to have a confirm : 9234911#comments
You are welcome to sent PR updates with the docs