diff --git a/src/pages/index.astro b/src/pages/index.astro index 4ab91ca..f8737ef 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,26 +5,28 @@ import { SignIn, SignOut } from 'auth-astro/components'; import KarKarCarAuth from "../components/KarKarCarAuth.astro" // 1. Import any dependencies (Full support for JavaScript/TypeScript) -import { getUser, type KarKarCarSession } from "../api/index.ts" +import { getUser, type KarKarCarSession } from "../api/index" import UserInfo from "../components/UserInfo.astro" import config from 'auth:config' - - const session = await getUser(Astro.request, config); --- - - - {(session: KarKarCarSession) => ( - <> - {session ? - Logout - : - Login - } - - )} - +
+
+ + + {(session: KarKarCarSession) => ( + <> + {session ? + Logout + : + Login + } + + )} + +
+
\ No newline at end of file