mirror of
https://github.com/StanGirard/quivr.git
synced 2024-09-11 13:15:41 +03:00
* remove duplicate import * 🚧 add new linter configuration * 🧑💻 add and run prettier * 🐛 add babel parser for linter * 🧑💻 add lint-fix command * 🚨 use lint-fix * 🚨 remove 'FC' as a type. Use const and JSX.Element * 🚨 enforce arrow function rule from linter * 🔥 delete unused file * 🚨 adding /* eslint-disable */ in failing files * 💩 add ts-expect-error to Victory components
13 lines
462 B
TypeScript
13 lines
462 B
TypeScript
import { createMiddlewareSupabaseClient } from "@supabase/auth-helpers-nextjs";
|
|
import type { NextRequest } from "next/server";
|
|
import { NextResponse } from "next/server";
|
|
// import type { Database } from '@/lib/database.types'
|
|
|
|
export const middleware = async (req: NextRequest): Promise<NextResponse> => {
|
|
const res = NextResponse.next();
|
|
const supabase = createMiddlewareSupabaseClient({ req, res });
|
|
await supabase.auth.getSession();
|
|
|
|
return res;
|
|
};
|