@@ -109,6 +109,7 @@ def create_access_token(user: dict) -> str:
"sub": str(user["id"]),
"username": user["username"],
"role": user.get("role", "visitor"),
"type": "access", # JWT 类型标识(修复:auth/me 期望此字段)
"exp": expire,
"iat": datetime.utcnow()
}
The note is not visible to the blocked user.