Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return to root page after logout #18

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

Carifio24
Copy link
Member

This PR provides a solution to avoid the logout issues that we were seeing in #12. The problem is that if I'm in a user-only page (e.g. the class management page) and logout, the OAuth currently attempts to return me to the current path, which will then error because the relevant user ID is not present. The solution here is to tell the OAuth to return us to the root path instead.

In the future, if we have more routes where only some are user-restricted, we could probably extend the logic here to only do this if the current route requires being logged in, but we aren't at that point yet.

@Carifio24 Carifio24 requested a review from nmearl October 23, 2024 16:05
@nmearl nmearl merged commit eebec3d into cosmicds:main Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants