11 lines
313 B
TypeScript
11 lines
313 B
TypeScript
import { auth } from "../../lib/auth";
|
|
import type { LoaderFunctionArgs, ActionFunctionArgs } from "react-router";
|
|
|
|
export async function loader({ request }: LoaderFunctionArgs) {
|
|
return auth.handler(request);
|
|
}
|
|
|
|
export async function action({ request }: ActionFunctionArgs) {
|
|
return auth.handler(request);
|
|
}
|