"use client"; import { signIn, useSession } from "next-auth/react"; import Link from "next/link"; import { IconButton } from "../components/button"; import styles from "./login.module.scss"; export default function Login() { const session = useSession(); const handleLogin = async () => { signIn("azure-ad", { callbackUrl: "/", }); }; return (

Welcome to AdEx GPT

Before you can start using AdEx GPT you have to sign in using your AdEx account. After a successful sign in you will be redirected to the chat.

{session.status === "authenticated" ? ( ) : ( )}
); }