summaryrefslogtreecommitdiff
path: root/frontend/lib
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-13 16:36:16 +0100
committerdiogo464 <[email protected]>2025-08-13 16:36:16 +0100
commitfa13fa8db757946e34b515270456d9008627d61e (patch)
tree2fbd5891d99663c4d1c378952935c29b16b2b558 /frontend/lib
parent817d5696ec6dfe7679467f05619d58b8d741230d (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')
-rw-r--r--frontend/lib/auth.ts2
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 @@
1import { cookies } from 'next/headers'; 1import { cookies } from 'next/headers';
2import { Env_is_development } from './env'; 2import { Env_is_development } from './env';
3import type { UserSessionCookie, UserAuth } from './auth_types'; 3import type { UserSessionCookie, UserAuth } from './auth_types';
4import { Auth_tinyauth_endpoint } from './auth_shared';
4 5
5 6
6export async function Auth_extract_session_cookie(): Promise<UserSessionCookie | null> { 7export 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 {