Skip to content

Commit 25f7a22

Browse files
chore: use redis token from config
1 parent b6e723c commit 25f7a22

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Settings(BaseSettings):
2121
ADDON_NAME: str = "Watchly"
2222
REDIS_URL: str = "redis://redis:6379/0"
2323
TOKEN_SALT: str = "change-me"
24+
REDIS_TOKEN_KEY: str = "watchly:token:"
2425
TOKEN_TTL_SECONDS: int = 0 # 0 = never expire
2526
ANNOUNCEMENT_HTML: str = ""
2627
AUTO_UPDATE_CATALOGS: bool = True

app/services/token_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class TokenStore:
1717
"""Redis-backed store for user credentials and auth tokens."""
1818

19-
KEY_PREFIX = "watchly:token:"
19+
KEY_PREFIX = settings.REDIS_TOKEN_KEY
2020

2121
def __init__(self) -> None:
2222
self._client: redis.Redis | None = None

0 commit comments

Comments
 (0)