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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
export default function Logout() {
const navigate = useNavigate();
const { logout } = useApollo();
logout();
Copy link
Member

Choose a reason for hiding this comment

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

It's a Promise, better wait for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants