Add some stub user stuff

This commit is contained in:
2026-01-03 17:06:54 -06:00
parent c926f15aab
commit e136c07928
3 changed files with 44 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
import { AuthService, InMemoryAuthStore } from "../auth";
import { config } from "../config";
import { getLogs, log } from "../logging";
import { AnonymousUser, anonymousUser, type User } from "../user";
//const database = Client({
@@ -27,16 +28,24 @@ const misc = {
},
};
const session = {
getUser: (): User => {
return anonymousUser;
},
};
// Initialize auth with in-memory store
const authStore = new InMemoryAuthStore();
const auth = new AuthService(authStore);
// Keep this asciibetically sorted
const services = {
auth,
database,
logging,
misc,
random,
auth,
session,
};
export { services };