Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { type NextPage } from "next";
- import Head from "next/head";
- import Link from "next/link";
- import { signIn, signOut, useSession } from "next-auth/react";
- import { api } from "../utils/api";
- const Home: NextPage = () => {
- const { data: session } = useSession();
- return (
- <>
- <Head>
- <title>Create T3 App</title>
- <meta name="description" content="Generated by create-t3-app" />
- <link rel="icon" href="/favicon.ico" />
- </Head>
- <div>
- <button onClick={() => signIn()}>Login</button>
- {JSON.stringify(session)}
- </div>
- </>
- );
- };
- export default Home;
Advertisement
Add Comment
Please, Sign In to add comment