🤠 Protect Routes

Redirect unauthenticated routing requests

  const session = await getServerSession();

  if (!session) {
    redirect('/api/auth/signin');
    // return <p>You must be signed in...</p>
  }

Questions? Let's chat

Open Discord