(►__◄)
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
This commit is contained in:
@@ -23,10 +23,12 @@ async function login(): Promise<void> {
|
||||
const success: boolean = await authApi.login(user);
|
||||
|
||||
if(success) {
|
||||
router.push(""); // redirect
|
||||
router.push("/"); // redirect
|
||||
} else {
|
||||
// prompt try again
|
||||
}
|
||||
// TODO: interceptor for when a request returns unauthorized to redirect to login
|
||||
// TODO: when redirected to login, save previous url as a query parameter then redirect back to that url after login
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user