Guest User

Untitled

a guest
Apr 2nd, 2024
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { signOut, useSession } from 'next-auth/react';
  2. import Nav from '@components/Nav'
  3. import secure from '@util/secure'
  4. import Head from 'next/head'
  5. import FourOThree from '@components/FourOthree';
  6. import Guilds from '@components/Guilds';
  7. import { signIn } from 'next-auth/react';
  8. import { useRouter } from "next/router";
  9. import { toast } from 'react-toastify';
  10.  
  11.  
  12. const Dashboard = () => {
  13.  
  14.   const { data: session, status } = useSession();
  15.   const router = useRouter();
  16.  
  17.   console.log(status);
  18.   console.log(session);
  19.  
  20.   switch (status) {
  21.     case "loading":
  22.       return <div></div>
  23.     case "unauthenticated":
  24.       return <FourOThree />
  25.     case "authenticated":
  26.       return <div></div>
Advertisement
Add Comment
Please, Sign In to add comment