🤠 Protect Routes
Redirect unauthenticated routing requests
const session = await getServerSession();
if (!session) {
redirect('/api/auth/signin');
// return <p>You must be signed in...</p>
}
Redirect unauthenticated routing requests
const session = await getServerSession();
if (!session) {
redirect('/api/auth/signin');
// return <p>You must be signed in...</p>
}