JWTRefreshTokenBundle icon indicating copy to clipboard operation
JWTRefreshTokenBundle copied to clipboard

logout configuration documented for gesdinet_jwt_refresh_token triggers “Unrecognized option” error

Open jgniecki opened this issue 6 months ago • 1 comments

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

  1. 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"]
  1. 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 avatar Oct 22 '25 12:10 jgniecki

@jgniecki could you try this with master version and confirm if it is reproducible? Thanks

shakaran avatar Oct 22 '25 12:10 shakaran

Just read this to have a confirm : https://github.com/markitosgv/JWTRefreshTokenBundle/commit/9234911ebcfe9d67b8f2650e41472c89ce2e89a7#comments

maxhelias avatar Dec 12 '25 08:12 maxhelias

Just read this to have a confirm : 9234911#comments

You are welcome to sent PR updates with the docs

shakaran avatar Dec 12 '25 21:12 shakaran