mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
export session interface to create a user interface for context
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user