feat: Add auth endpoint

This commit is contained in:
Wanjohi
2025-09-20 04:49:31 +03:00
parent a045fc9c91
commit 49286d7e72
4 changed files with 17 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import { createContext } from "../context";
import { Context } from "../context";
export namespace Log {
const ctx = createContext<{
const ctx = Context.create<{
tags: Record<string, any>;
}>();
@@ -42,7 +42,7 @@ export namespace Log {
return result;
},
tag(key: string, value: string) {
// Immutable update: return a fresh logger with updated tags
// Immutable update: return a fresh logger with updated tags
return Log.create({ ...tags, [key]: value });
},
clone() {
@@ -73,4 +73,4 @@ export namespace Log {
return { tags: {} };
}
}
}
}