From c619089403e70974aa2bb29cff5d21d9949cdeb7 Mon Sep 17 00:00:00 2001 From: airano Date: Tue, 17 Feb 2026 18:27:38 +0330 Subject: [PATCH] fix(oauth): fallback storage path when /app doesn't exist Co-Authored-By: Claude Opus 4.6 --- core/oauth/storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/oauth/storage.py b/core/oauth/storage.py index 14379d7..04d0a0b 100644 --- a/core/oauth/storage.py +++ b/core/oauth/storage.py @@ -213,7 +213,8 @@ def get_storage() -> BaseStorage: storage_type = os.getenv("OAUTH_STORAGE_TYPE", "json") if storage_type == "json": - storage_path = os.getenv("OAUTH_STORAGE_PATH", "/app/data") + default_path = "/app/data" if Path("/app").exists() else "./data" + storage_path = os.getenv("OAUTH_STORAGE_PATH", default_path) return JSONStorage(storage_path) # Future: Redis support