Implement task 6.1: Create PUT /api/auth/profile endpoint for updating user display name
- Create src/app/api/auth/profile/route.ts with PUT handler - Validates user is authenticated (returns 401 if not) - Validates request body has a non-empty name field - Updates user's name in the database - Returns 200 with updated user data Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d4e92cf88f
commit
c36ab7c146
27 changed files with 2699 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
## 6. User Settings API
|
||||
|
||||
- [ ] 6.1 `[haiku]` Create `PUT /api/auth/profile` endpoint: update user display name
|
||||
- [x] 6.1 `[haiku]` Create `PUT /api/auth/profile` endpoint: update user display name
|
||||
- [ ] 6.2 `[sonnet]` Create `PUT /api/auth/password` endpoint: verify current password, hash new password, update; reject for OAuth users
|
||||
- [ ] 6.3 `[sonnet]` Create `DELETE /api/auth/account` endpoint: delete all user data (cascade) and user record
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue