Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
2.64k stars 108 forks source link

Respect COOKIE_VALIDITY_MS setting in production #365

Closed RagingCactus closed 3 months ago

RagingCactus commented 3 months ago

The COOKIE_VALIDITY_MS environment variable is supposed to configure how long issued session cookies are valid for. However, before this commit, this setting was only respected when the OFFLINE_DEV_ID setting (which seems to be used for local testing during development) is enabled.

This commit changes this so the configured validity period also gets applied to session cookies issued using the Spotify login OAuth flow.

Yooooomi commented 3 months ago

Thanks a lot! Merging