feat: add local access control and managed point clouds

This commit is contained in:
2026-07-22 11:05:48 +08:00
parent 683e4d6c07
commit 8555aa2f2e
46 changed files with 1982 additions and 884 deletions

View File

@@ -15,14 +15,17 @@ function createAuthContext(): { ctx: TrpcContext; clearedCookies: CookieCall[] }
const user: AuthenticatedUser = {
id: 1,
openId: "sample-user",
username: "sample-user",
passwordHash: null,
email: "sample@example.com",
name: "Sample User",
loginMethod: "manus",
role: "user",
isActive: 1,
mustChangePassword: 0,
sessionVersion: 0,
createdAt: new Date(),
updatedAt: new Date(),
lastSignedIn: new Date(),
lastLoginAt: new Date(),
};
const ctx: TrpcContext = {
@@ -54,7 +57,7 @@ describe("auth.logout", () => {
expect(clearedCookies[0]?.options).toMatchObject({
maxAge: -1,
secure: true,
sameSite: "none",
sameSite: "lax",
httpOnly: true,
path: "/",
});