mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Move auth token logic to useApi hook.
This commit is contained in:
parent
d19b6b5a82
commit
3a8bfd1dbd
7 changed files with 56 additions and 28 deletions
|
|
@ -46,7 +46,9 @@ export default function LoginForm() {
|
|||
|
||||
setUser(data.user);
|
||||
|
||||
return router.push('/');
|
||||
await router.push('/');
|
||||
|
||||
return null;
|
||||
} else {
|
||||
setMessage(
|
||||
status === 401 ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue