Unify the old session and the next auth session #104
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#104
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?
The current solution uses two sessions. One from the library of next auth and one based on the structure of the initial session implementation. In order to reduce the maintenance burden we should try to unify these two sessions so that they are managed by next auth.
Acceptance criteria:
Note: The current issue could also close #146 since logout logic should be unified as well.
I started working here: https://github.com/NBISweden/sda-download-ui/tree/104-unify-next-auth-session
The work is clearly unfinished but works under the assumption that the most next and next-auth native solution to this problem would be to mirror the REST API using the session instead of a token. I had a hard time figuring out what else would be a nice solution to the problem so feel free to doubt my choice and go another route if you find it more convenient or clearly better.
I would appreciate if I could be relieved of this task as this moment in time due to being slightly incapacitated.