diff --git a/src/pages/events/index.js b/src/pages/events/index.js
index a352ee3..c82facc 100644
--- a/src/pages/events/index.js
+++ b/src/pages/events/index.js
@@ -121,6 +121,7 @@ export async function getServerSideProps({req, res, query}) {
const session = await getSession({req});
const fetch = getFetcher(session);
if (!session) return {props: {}};
+ if(!session.clearAuthToken) return {redirect: { destination:'/unauthorized', permanent:false }}
const eventResults = await fetch(
getEvents,
session.isAdmin ? null : { where: [{ managers: { hasSome: [session.user.nickname] } }] }
diff --git a/src/pages/unauthorized.js b/src/pages/unauthorized.js
index 8df7c55..4a02c58 100644
--- a/src/pages/unauthorized.js
+++ b/src/pages/unauthorized.js
@@ -13,7 +13,6 @@ export default function Unauthorized() {
I'm sorry, but I'm not allowed to let you in here.
If you feel this is in error, please ask your CodeDay point of contact.
- Go home
);