From 4569b85489e863465395f84e995dd3fdc44471b4 Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Sun, 22 Nov 2020 13:49:09 +0100
Subject: implement refresh tokens

---
 client/src/admin/jsx/App.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'client/src/admin/jsx/App.jsx')

diff --git a/client/src/admin/jsx/App.jsx b/client/src/admin/jsx/App.jsx
index 146af70..93b6a33 100644
--- a/client/src/admin/jsx/App.jsx
+++ b/client/src/admin/jsx/App.jsx
@@ -8,6 +8,7 @@ import Info from './Info.jsx';
 import MainScreen from './MainScreen.jsx';
 import Context from '../context';
 import { defaultLanguage } from '../data/translations';
+import { getUser } from '../api';
 
 const App = () => {
   const [lang, setLang] = useState(defaultLanguage);
@@ -18,8 +19,8 @@ const App = () => {
   const [user, setUser] = useState(null);
 
   useEffect(() => {
+    getUser(setUser);
     setInfo('no-saved-websites');
-    setUser('admin@op.pl');
   }, []);
 
   return (
-- 
cgit v1.2.3

