refactor: remove supabase auth

This commit is contained in:
Henry
2025-05-05 15:16:30 +01:00
parent 091fea6f38
commit b6daaa41de
42 changed files with 319 additions and 1591 deletions

View File

@@ -12,9 +12,11 @@ export default function Layout({ children }: { children: React.ReactNode }) {
const token =
typeof window !== "undefined"
? Cookies.get(env.NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME)
? Cookies.get('kan.session_token')
: null;
const getSession = async () => {
const { data } = api.user.getUser.useQuery(undefined, {
enabled: !!token,
});