Simple auth api (no db)

This commit is contained in:
2025-09-20 10:19:46 +02:00
parent 202a0420fa
commit 04eefcacfc
7 changed files with 414 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
import { StringMap } from "@/types/typeUtils";
type ServerAuth = {
server_ip: string;
user_id: number;
};
// { token: userid }
export const CLIENT_AUTH_TOKENS: StringMap<number> = {};
export const SERVER_AUTH_TOKENS: StringMap<ServerAuth> = { test: { server_ip: '10.7.1.21', user_id: 2323 } };