integrate kontor-angular

This commit is contained in:
2026-04-19 20:05:50 +02:00
parent 57129c2d37
commit aca9a1aa4a
18 changed files with 101 additions and 20 deletions
+3 -3
View File
@@ -5,12 +5,12 @@ const API_URL = "http://localhost:8200/";
class AuthService {
login(user) {
return axios
.post(API_URL + "login", {
email: user.username,
.post(API_URL + "api/login/token", {
username: user.username,
password: user.password,
})
.then((response) => {
if (response.data.accessToken) {
if (response.data.access_token) {
localStorage.setItem("user", JSON.stringify(response.data));
}
return response.data;