markitosgv / JWTRefreshTokenBundle

Implements a Refresh Token system over Json Web Tokens in Symfony
MIT License
663 stars 158 forks source link

Change cookie name. #383

Open MortalKonga opened 3 months ago

MortalKonga commented 3 months ago

The default name is refresh_token. I'd like to change it to super_secret_cookie_name or something like that. Is that possible?

mbabker commented 3 months ago

The token_parameter_name config node covers the name no matter if you're using a cookie or some other request parameter. Just note that if you change this, it affects all uses of the config value for both inputs and outputs. So if your app supports both a cookie and reading it from a JSON payload, then you need to use super_secret_cookie_name everywhere you're currently using refresh_token.