mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
fix: wip
This commit is contained in:
@ -1,13 +1,9 @@
|
||||
import { redirect } from 'react-router';
|
||||
|
||||
import { getSession } from '@documenso/auth/server/lib/utils/get-session';
|
||||
|
||||
import type { Route } from './+types/_index';
|
||||
|
||||
export async function loader({ request }: Route.LoaderArgs) {
|
||||
const { user } = await getSession(request);
|
||||
|
||||
if (user) {
|
||||
export async function loader({ context }: Route.LoaderArgs) {
|
||||
if (context.session) {
|
||||
return redirect('/documents');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user