feat: implement logout on frontend

This commit is contained in:
mrjvs
2026-08-09 17:36:46 +02:00
parent 88ec0b9c53
commit af81080e7b
2 changed files with 12 additions and 6 deletions

View File

@@ -31,17 +31,18 @@ The website is currently in a refactor, here is what is still left on the fronte
And the tasks left on the backend:
- [ ] Registration (with captchas)
- [ ] Logout
- [x] Logout
- [x] Login
- [ ] Password forgot flow
- [x] Password forgot flow
- [x] Stripe webhook emails
- [x] Stripe webhook database updates
- [] Discord integration (add/remove roles on link and subscription changes)
- [ ] Discord integration (add/remove roles on link and subscription changes)
- [ ] Creation of stripe subscriptions
- [ ] Account editing (mii saving, server environment changes)
- [ ] Delete account
- [x] Account editing (mii saving, server environment changes)
- [x] Delete account
- [x] Discourse SSO
Miscellanous tasks:
- [ ] Merge upstream changes into refactor branch
- [ ] Security testing
- [ ] Document configuration

View File

@@ -65,9 +65,14 @@ export function useAuthStore() {
}
}
function logout() {
set(null);
}
return {
getToken,
refresh,
set
set,
logout,
};
}