From af81080e7bf0b2ce13d55df4f6bca4a8c7f3da91 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 9 Aug 2026 17:36:46 +0200 Subject: [PATCH] feat: implement logout on frontend --- README.md | 11 ++++++----- src/stores/auth.ts | 7 ++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2db7cf0..6f12591 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 0ddf5d1..7102258 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -65,9 +65,14 @@ export function useAuthStore() { } } + function logout() { + set(null); + } + return { getToken, refresh, - set + set, + logout, }; }