Create nextauth route handler exporting GET/POST from auth.ts (task 3.4)

This commit is contained in:
Marko Djordjevic 2026-02-20 10:13:32 +01:00
parent a8c88f3ca2
commit 45b6366861
2 changed files with 2 additions and 1 deletions

View file

@ -17,7 +17,7 @@
- [x] 3.1 `[sonnet]` Create `src/auth.ts` with Auth.js v5 config: JWT strategy, Credentials provider (email/password with bcryptjs verify), Google OAuth provider
- [x] 3.2 `[sonnet]` Add JWT callback to embed `user.id` in token and session callback to expose `session.user.id`
- [x] 3.3 `[sonnet]` Handle Google OAuth sign-in callback: create user on first sign-in, find existing user on returning sign-in
- [ ] 3.4 `[haiku]` Create `src/app/api/auth/[...nextauth]/route.ts` exporting GET/POST handlers
- [x] 3.4 `[haiku]` Create `src/app/api/auth/[...nextauth]/route.ts` exporting GET/POST handlers
## 4. Registration API

View file

@ -0,0 +1 @@
export { GET, POST } from "@/auth";