refactor: remove supabase auth
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user