Implement JWT authentication and user token management

This commit is contained in:
Torsten Schulz
2025-07-17 11:47:37 +02:00
parent ad2ab3cae8
commit 353b8386ee
4 changed files with 44 additions and 19 deletions

View File

@@ -55,8 +55,8 @@ const store = createStore({
logout({ commit }) {
commit('clearToken');
commit('clearUsername');
router.push("/");
window.location.reload();
router.push('/login'); // Leitet den Benutzer zur Login-Seite um
window.location.reload(); // Optional, um den Zustand vollständig zurückzusetzen
},
setCurrentClub({ commit }, club) {