test(auth): more auth work

This commit is contained in:
2025-03-01 15:22:34 -06:00
parent 6c3199fecc
commit d3acdfb481
12 changed files with 275 additions and 78 deletions

View File

@@ -1,11 +1,17 @@
import {create} from "zustand";
type User = {
id: number;
user_id: string;
email: string;
username: string;
roles: keyof Roles[];
role: string;
};
interface Roles {
role: string;
}
export type SessionState = {
user: User | null;
token: string | null;