mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-15 07:29:08 +03:00
28 lines
787 B
Plaintext
28 lines
787 B
Plaintext
---
|
|
import '@/styles/global.css';
|
|
import ConsentPage from '@/components/oauth/ConsentPage';
|
|
import ThemeScript from '@/components/theme/ThemeScript.astro';
|
|
import Providers from '@/components/layout/Providers';
|
|
|
|
// Check if user is authenticated
|
|
const sessionCookie = Astro.cookies.get('better-auth-session');
|
|
if (!sessionCookie) {
|
|
return Astro.redirect('/login');
|
|
}
|
|
---
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<meta name="generator" content={Astro.generator} />
|
|
<title>Authorize Application - Gitea Mirror</title>
|
|
<ThemeScript />
|
|
</head>
|
|
<body>
|
|
<Providers>
|
|
<ConsentPage client:load />
|
|
</Providers>
|
|
</body>
|
|
</html> |