diff options
author | 2020-11-22 13:49:09 +0100 | |
---|---|---|
committer | 2020-11-22 13:49:09 +0100 | |
commit | 4569b85489e863465395f84e995dd3fdc44471b4 (patch) | |
tree | 6e4d27883809c94c8b3f3b87159d85c7f3874bbd /client/src/admin/jsx/App.jsx | |
parent | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (diff) | |
download | website_creator-4569b85489e863465395f84e995dd3fdc44471b4.tar.gz website_creator-4569b85489e863465395f84e995dd3fdc44471b4.tar.bz2 website_creator-4569b85489e863465395f84e995dd3fdc44471b4.zip |
implement refresh tokens
Diffstat (limited to 'client/src/admin/jsx/App.jsx')
-rw-r--r-- | client/src/admin/jsx/App.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
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 ( |