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

Feat: Add /logout route, redirect there from logout button #574

Merged
merged 6 commits into from
Oct 10, 2024

Conversation

realmayus
Copy link
Contributor

Add /logout route, redirect there from logout button

Closes https://github.com/corona-school/project-user/issues/1234

@Jonasdoubleyou Jonasdoubleyou temporarily deployed to user-app-feat-logout-ro-jtp7qm June 20, 2024 16:55 Inactive
src/components/Logout.tsx Outdated Show resolved Hide resolved
};

const logout = useLogout();
logout().then(() => navigate('/welcome', { state: locState }));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we login again, on which page will we land?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We land on /start

@realmayus realmayus merged commit c236b85 into main Oct 10, 2024
3 checks passed
@realmayus realmayus deleted the feat-logout-route branch October 10, 2024 16:59
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