📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Added exception try/catch for authMe
Blaumaus5f39b41bd083
diff --git a/src/App.js b/src/App.jsindex 51a1f2002..5be593ae3 100644--- a/src/App.js+++ b/src/App.js@@ -43,10 +43,14 @@ const App = () => {useEffect(() => {(async () => {if (accessToken) {- const me = await authMe()+ try {+ const me = await authMe()- dispatch(authActions.loginSuccess(me))- dispatch(authActions.finishLoading())+ dispatch(authActions.loginSuccess(me))+ dispatch(authActions.finishLoading())+ } catch (e) {+ dispatch(authActions.logout())+ }}})()}, [dispatch, accessToken])