📈 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
accestoken fix
Maksim Mrug470ca6acc031
diff --git a/app/utils/accessToken.ts b/app/utils/accessToken.tsindex 60c6c018c..afa44f4ed 100644--- a/app/utils/accessToken.ts+++ b/app/utils/accessToken.ts@@ -7,25 +7,26 @@ const STORE_AUTH_TOKEN_FOR = 8467200// It's important to first check in cookie, then in session storage, not vice versa.export const getAccessToken = () => {- let accessToken = getCookie(TOKEN)+ // let accessToken = getCookie(TOKEN)- if (_isEmpty(accessToken)) {- accessToken = sessionStorage.getItem(TOKEN)- }+ // if (_isEmpty(accessToken)) {+ // accessToken = sessionStorage.getItem(TOKEN)+ // }- return accessToken+ // return accessToken+ return null}export const setAccessToken = (token: string, temporary: boolean = false) => {if (temporary) {- sessionStorage.setItem(TOKEN, token)+ // sessionStorage.setItem(TOKEN, token)return}- setCookie(TOKEN, token, STORE_AUTH_TOKEN_FOR)+ // setCookie(TOKEN, token, STORE_AUTH_TOKEN_FOR)}export const removeAccessToken = () => {- deleteCookie(TOKEN)- sessionStorage.removeItem(TOKEN)+ // deleteCookie(TOKEN)+ // sessionStorage.removeItem(TOKEN)}