diff --git a/astrbot/dashboard/routes/auth.py b/astrbot/dashboard/routes/auth.py index 1d88f6ee4..eac5f65b0 100644 --- a/astrbot/dashboard/routes/auth.py +++ b/astrbot/dashboard/routes/auth.py @@ -82,7 +82,8 @@ class AuthRoute(Route): def generate_jwt(self, username): payload = { "username": username, - "exp": datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(days=7), + "exp": datetime.datetime.now(datetime.timezone.utc) + + datetime.timedelta(days=7), } jwt_token = self.config["dashboard"].get("jwt_secret", None) if not jwt_token: