diff options
| author | diogo464 <[email protected]> | 2025-08-13 16:36:16 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-13 16:36:16 +0100 |
| commit | fa13fa8db757946e34b515270456d9008627d61e (patch) | |
| tree | 2fbd5891d99663c4d1c378952935c29b16b2b558 /frontend/lib/auth.ts | |
| parent | 817d5696ec6dfe7679467f05619d58b8d741230d (diff) | |
fix: move auth import to top of file
Replaced dynamic import with proper static import at the top
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'frontend/lib/auth.ts')
| -rw-r--r-- | frontend/lib/auth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/lib/auth.ts b/frontend/lib/auth.ts index 55255fc..f81e73d 100644 --- a/frontend/lib/auth.ts +++ b/frontend/lib/auth.ts | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | import { cookies } from 'next/headers'; | 1 | import { cookies } from 'next/headers'; |
| 2 | import { Env_is_development } from './env'; | 2 | import { Env_is_development } from './env'; |
| 3 | import type { UserSessionCookie, UserAuth } from './auth_types'; | 3 | import type { UserSessionCookie, UserAuth } from './auth_types'; |
| 4 | import { Auth_tinyauth_endpoint } from './auth_shared'; | ||
| 4 | 5 | ||
| 5 | 6 | ||
| 6 | export async function Auth_extract_session_cookie(): Promise<UserSessionCookie | null> { | 7 | export async function Auth_extract_session_cookie(): Promise<UserSessionCookie | null> { |
| @@ -34,7 +35,6 @@ export async function Auth_get_user(): Promise<UserAuth> { | |||
| 34 | } | 35 | } |
| 35 | 36 | ||
| 36 | const cookie = await Auth_extract_session_cookie(); | 37 | const cookie = await Auth_extract_session_cookie(); |
| 37 | const { Auth_tinyauth_endpoint } = await import('./auth_shared'); | ||
| 38 | const endpoint = Auth_tinyauth_endpoint(); | 38 | const endpoint = Auth_tinyauth_endpoint(); |
| 39 | 39 | ||
| 40 | try { | 40 | try { |
