export session interface to create a user interface for context

This commit is contained in:
2026-06-12 11:27:12 +02:00
parent 734c631356
commit 887a43636f
2 changed files with 19 additions and 21 deletions
+2 -5
View File
@@ -9,13 +9,10 @@ import {
useEffect,
useState,
} from "react";
import type { ISession } from "#/interfaces.ts";
import { getSession } from "#/server/lichess.ts";
interface ILichessUser {
username: string;
id: string;
}
interface ILichessUser extends Omit<ISession, "token"> {}
interface ILichessUserContextType {
user: ILichessUser | null;