Simple auth api (no db)
This commit is contained in:
@@ -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 } };
|
||||
Reference in New Issue
Block a user