Clear NextAuth session during logout #146
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui#146
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This should be taken care of after #104 is done (or in #104).
Please describe the feature
As a user,
I want logout to clear both the SDAD token session and the authentication session
so that
my tokens and login state are removed from this device.
Detailed description
This is a follow-up to #11.
The current logout implementation from #145 clears the custom SDA session cookie (
sdad-session) and redirects the user away from the authenticated UI. However, NextAuth still keeps its own session cookies on the device.Extend the logout flow so that signing out clears both:
Acceptance criteria
Additional context
logout()flow rather than replacing it.