mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 21:37:59 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { useTranslation } from "react-i18next";
|
|
import Head from "next/head";
|
|
import Image from "next/image";
|
|
import Link from "next/link";
|
|
import { useRouter } from "next/router";
|
|
|
|
import { LoginSSO } from "@app/views/Login";
|
|
|
|
export default function LoginSSOPage() {
|
|
const { t } = useTranslation();
|
|
const router = useRouter();
|
|
const token = router.query.token as string;
|
|
|
|
return (
|
|
<div className="flex h-screen flex-col justify-center bg-gradient-to-tr from-mineshaft-600 via-mineshaft-800 to-bunker-700 px-6 pb-28 ">
|
|
<Head>
|
|
<title>{t("common.head-title", { title: t("login.title") })}</title>
|
|
<link rel="icon" href="/infisical.ico" />
|
|
<meta property="og:image" content="/images/message.png" />
|
|
<meta property="og:title" content={t("login.og-title") ?? ""} />
|
|
<meta name="og:description" content={t("login.og-description") ?? ""} />
|
|
</Head>
|
|
<Link href="/">
|
|
<div className="mb-4 mt-20 flex justify-center">
|
|
<Image src="/images/gradientLogo.svg" height={90} width={120} alt="Infisical logo" />
|
|
</div>
|
|
</Link>
|
|
<LoginSSO providerAuthToken={token} />
|
|
</div>
|
|
);
|
|
}
|