import Head from "next/head"; import Link from "next/link"; import { CheckIcon } from "@heroicons/react/outline"; import { getSession, signOut } from "next-auth/client"; export default function Logout() { return (
Logged out - Calendso

We hope to see you again soon!

Go back to the login page
); } Logout.getInitialProps = async (context) => { const { req } = context; const session = await getSession({ req }); if (session) { signOut({ redirect: false }); } return { session: undefined }; };