Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/app-portal/src/app/(applicant)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//applicant shell (header, user menu); placeholder session check
1 change: 1 addition & 0 deletions apps/app-portal/src/app/(landing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ import React from "react";
export default function Page(): JSX.Element {
return <>poop</>;
}
//TODO: update to redirect authed users to /dashboard
10 changes: 10 additions & 0 deletions apps/app-portal/src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//NextAuth handler, email provider + Mongo adapter wired up
import { NextResponse } from "next/server";

export async function GET() {
return NextResponse.json({ error: "not implemented" }, { status: 501 });
}

export async function POST() {
return NextResponse.json({ error: "not implemented" }, { status: 501 });
}
6 changes: 6 additions & 0 deletions apps/app-portal/src/app/api/v1/user/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//GET current session user; returns 401 if no session
import { NextResponse } from "next/server";

export async function GET() {
return NextResponse.json({ error: "not implemented" }, { status: 501 });
}
6 changes: 6 additions & 0 deletions apps/app-portal/src/app/auth/error/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//auth error display (callback errors, expired links, etc.)
import React from "react";

export default function Page(): JSX.Element {
return <>hay is for horses</>;
}
6 changes: 6 additions & 0 deletions apps/app-portal/src/app/auth/signin/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//magic-link email entry form
import React from "react";

export default function Page(): JSX.Element {
return <>hay is for horses</>;
}
6 changes: 6 additions & 0 deletions apps/app-portal/src/app/auth/verify-request/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//"Check your email" confirmation screen
import React from "react";

export default function Page(): JSX.Element {
return <>hay is for horses</>;
}
6 changes: 6 additions & 0 deletions apps/app-portal/src/components/auth/SignInForm.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//email input form, calls signIn("email")
import React from "react";

export default function Page(): JSX.Element {
return <>hay is for horses</>;
}
6 changes: 6 additions & 0 deletions apps/app-portal/src/components/auth/UserMenu.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//avatar + sign-out dropdown for header
import React from "react";

export default function Page(): JSX.Element {
return <>hay is for horses</>;
}
1 change: 1 addition & 0 deletions apps/app-portal/src/components/ui/input.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/prop-types */
import * as React from "react";

import { cn } from "@/lib/utils";
Expand Down
1 change: 1 addition & 0 deletions apps/app-portal/src/components/ui/table.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/prop-types */
import * as React from "react";
/* eslint-disable react/prop-types */

Expand Down
1 change: 1 addition & 0 deletions apps/app-portal/src/lib/auth/adapter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//Mongo adapter instance
1 change: 1 addition & 0 deletions apps/app-portal/src/lib/auth/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//NextAuth options (providers, callbacks, session strategy)
1 change: 1 addition & 0 deletions apps/app-portal/src/lib/auth/email-transport.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//Nodemailer transport stub for magic-link emails
1 change: 1 addition & 0 deletions apps/app-portal/src/lib/auth/guards.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//requireUser() and requireAdmin() helpers for route handlers
1 change: 1 addition & 0 deletions apps/app-portal/src/lib/auth/session.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//server-side getSession() helper for RSCs
12 changes: 12 additions & 0 deletions apps/app-portal/src/middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//Next middleware, redirects unauthed users from protected routes
import { NextResponse } from "next/server";
// import type { NextRequest } from "next/server";

export default function middleware() {
//_request: NextRequest
return NextResponse.next();
}

export const config = {
matcher: [],
};