{"version":3,"sources":["webpack:///./src/pages/index.js"],"names":["Index","render","isLoggedIn","isAdmin","navigate","isAlumni","logout","isBrowser","React","Component"],"mappings":"+LAKqBA,E,gLACnBC,OAAA,WAgBE,OAfKC,cAKCC,cACFC,mBAAS,oBAEFC,cACPD,mBAAS,qBAGTE,cAXEC,eACFH,mBAAS,WAaN,M,GAjBwBI,IAAMC","file":"component---src-pages-index-js-b8e665fb96569b337cf9.js","sourcesContent":["import React from 'react'\nimport { isLoggedIn, isBrowser } from \"../services/auth\"\nimport { navigate } from \"gatsby\"\nimport { logout, isAdmin, isAlumni } from \"../services/auth\"\n\nexport default class Index extends React.Component {\n render() {\n if (!isLoggedIn()) {\n if (isBrowser()) {\n navigate('/login/')\n }\n } else {\n if (isAdmin()){\n navigate('/admin/dashboard')\n }\n else if (isAlumni()){\n navigate('/alumni/dashboard')\n }\n else {\n logout()\n }\n }\n return null\n }\n}\n\n"],"sourceRoot":""}