Implemented generic token handling

This commit is contained in:
grimsi
2024-09-26 16:50:18 +02:00
parent ff0d34e3a5
commit b28b5d048c
36 changed files with 369 additions and 204 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import {
} from "@nextui-org/react";
import {Alert, AlertDescription, AlertTitle} from "Frontend/@/components/ui/alert";
import {useNavigate} from "react-router-dom";
import {NotificationEndpoint, PasswordResetEndpoint} from "Frontend/generated/endpoints";
import {MessageEndpoint, PasswordResetEndpoint} from "Frontend/generated/endpoints";
import {toast} from "sonner";
export default function LoginView() {
@@ -35,7 +35,7 @@ export default function LoginView() {
const navigate = useNavigate();
useEffect(() => {
NotificationEndpoint.isEnabled().then(setCanResetPassword);
MessageEndpoint.isEnabled().then(setCanResetPassword);
}, []);
useEffect(() => {