mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-25 13:00:24 +08:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { useColorMode } from "@chakra-ui/react";
|
|
import Head from "next/head";
|
|
import { getCsrfToken, getProviders } from "next-auth/react";
|
|
import { AuthLayout } from "src/components/AuthLayout";
|
|
|
|
export default function Verify() {
|
|
const { colorMode } = useColorMode();
|
|
const bgColorClass = colorMode === "light" ? "bg-gray-50" : "bg-chakra-gray-900";
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Sign Up - Open Assistant</title>
|
|
<meta name="Sign Up" content="Sign up to access Open Assistant" />
|
|
</Head>
|
|
<div className={`flex h-full justify-center items-center ${bgColorClass}`}>
|
|
<div className={bgColorClass}>
|
|
<h1 className="text-lg">A sign-in link has been sent to your email address.</h1>
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
export async function getServerSideProps(context) {
|
|
const csrfToken = await getCsrfToken();
|
|
const providers = await getProviders();
|
|
return {
|
|
props: {
|
|
csrfToken,
|
|
providers,
|
|
},
|
|
};
|
|
}
|