Skip to content

📈 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!

fixed an issue that caused blank page being shown when refresh token is missing (but access token is present), #328

Blue Mousef44da9c74970
diff --git a/app/App.tsx b/app/App.tsx
index 3befb768b..83edcaa8c 100644
--- a/app/App.tsx
+++ b/app/App.tsx
@@ -27,8 +27,6 @@ import { StateType, useAppDispatch } from 'redux/store'
import { isBrowser } from 'redux/constants'
import routesPath from 'routesPath'
import { getPageMeta } from 'utils/server'
-
-import { getRefreshToken } from 'utils/refreshToken'
import { authMe } from './api'
const minimalFooterPages = [
@@ -86,12 +84,11 @@ const App: React.FC<IApp> = ({ ssrTheme, ssrAuthenticated }) => {
const { error } = useSelector((state: StateType) => state.errors)
const { message, type } = useSelector((state: StateType) => state.alerts)
const accessToken = getAccessToken()
- const refreshToken = getRefreshToken()
const authenticated = isBrowser ? reduxAuthenticated : ssrAuthenticated
useEffect(() => {
(async () => {
- if ((accessToken && refreshToken) && !authenticated) {
+ if (accessToken && !authenticated) {
try {
const me = await authMe()
dispatch(authActions.loginSuccessful(me))