feat: add role user modules and shared table updates
This commit is contained in:
@@ -26,7 +26,6 @@ export const useLoginForm = () => {
|
||||
|
||||
const onSubmit = async (data: LoginPayload) => {
|
||||
try {
|
||||
console.debug('[auth] login:start');
|
||||
const loginResponse = await authService.login({
|
||||
email: data.email,
|
||||
password: data.password,
|
||||
@@ -40,9 +39,7 @@ export const useLoginForm = () => {
|
||||
|
||||
setAccessToken(accessToken);
|
||||
setLoading();
|
||||
console.debug('[auth] login:token-stored');
|
||||
await initializeAuthenticatedApp();
|
||||
console.debug('[auth] login:initialized, redirecting', ROUTES.DASHBOARD);
|
||||
|
||||
toast.success('Login successful');
|
||||
router.push(ROUTES.DASHBOARD);
|
||||
|
||||
Reference in New Issue
Block a user