summaryrefslogtreecommitdiff
path: root/frontend/app
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-13 16:34:34 +0100
committerdiogo464 <[email protected]>2025-08-13 16:34:34 +0100
commit817d5696ec6dfe7679467f05619d58b8d741230d (patch)
tree24a2cb10369eaa6660773bfa2a7bb1b29bd9c9d2 /frontend/app
parentfe27e88eff20b342ba54e8df34ee962d62233552 (diff)
refactor: split auth module into separate files and fix imports
- Created auth_types.ts for type definitions - Created auth_shared.ts for utility functions and endpoints - Updated auth.ts to focus on session management - Fixed all auth import statements throughout codebase - Updated login redirect to use Auth_tinyauth_public_endpoint properly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'frontend/app')
-rw-r--r--frontend/app/api/upload/route.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/app/api/upload/route.ts b/frontend/app/api/upload/route.ts
index 07ab908..5ce0640 100644
--- a/frontend/app/api/upload/route.ts
+++ b/frontend/app/api/upload/route.ts
@@ -3,7 +3,8 @@ import { writeFile, unlink } from 'fs/promises'
3import { tmpdir } from 'os' 3import { tmpdir } from 'os'
4import { join } from 'path' 4import { join } from 'path'
5import { randomUUID } from 'crypto' 5import { randomUUID } from 'crypto'
6import { Auth_get_user, Auth_user_can_upload } from '@/lib/auth' 6import { Auth_get_user } from '@/lib/auth'
7import { Auth_user_can_upload } from '@/lib/auth_shared'
7import { Drive_import } from '@/lib/drive_server' 8import { Drive_import } from '@/lib/drive_server'
8import { UPLOAD_MAX_FILE_SIZE } from '@/lib/constants' 9import { UPLOAD_MAX_FILE_SIZE } from '@/lib/constants'
9 10