summaryrefslogtreecommitdiff
path: root/frontend/lib
diff options
context:
space:
mode:
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 {