Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit c8c4d08

Browse files
HasithDeAlwisMFarabi619
authored andcommitted
chore(portal): temporarily redirect users back to login to allow cookies to be set
1 parent bf6f7a8 commit c8c4d08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/portal/app/routes/api.auth.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
/* eslint-disable node/prefer-global/process */
21
import type { LoaderFunction } from '@remix-run/node'
32
import { redirect } from '@remix-run/node'
43

54
export const loader: LoaderFunction = async () => {
6-
return redirect(`${process.env.NODE_ENV === 'development' ? process.env.CUHACKING_2025_PORTAL_LOCAL_URL : process.env.CUHACKING_2025_PORTAL_PUBLIC_URL}`)
5+
/* return redirect(`${process.env.NODE_ENV === 'development' ? process.env.CUHACKING_2025_PORTAL_LOCAL_URL : process.env.CUHACKING_2025_PORTAL_PUBLIC_URL}`) */
6+
// HALP we need to log the user in and then set the session storage to save the userId
7+
return redirect('/login')
78
}
89

910
export default function AuthRedirect() {

0 commit comments

Comments
 (0)