Move auth token logic to useApi hook.
This commit is contained in:
1 parent
d19b6b5a82
commit
3a8bfd1dbd
7 files changed
+56
-28
No files matched your search
@@ -46,7 +46,9 @@ export default function LoginForm() {
|
||||
|
||||
setUser(data.user);
|
||||
|
||||
return router.push('/');
|
||||
await router.push('/');
|
||||
|
||||
return null;
|
||||
} else {
|
||||
setMessage(
|
||||
status === 401 ? (
|
||||
|
||||
Reference in new issue
Block a user