Add some stub user stuff
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user