@@ -108,6 +108,7 @@ def create_access_token(user: dict) -> str:
"sub": str(user["id"]),
"username": user["username"],
"role": user.get("role", "visitor"),
"type": "access", # ← 添加 type 字段用于标识 token 类型
"exp": expire,
"iat": datetime.utcnow()
}
The note is not visible to the blocked user.