Closed meysammahfouzi closed 4 years ago
Hi! You can create fake page with URL = '/logout' and attach Logout component to it. Logout button is link on logout page. User clicking on link will get redirect to index page after logout
Alright, thanks. I think it needs to be documented :)
Thanks you for your question. I will add to documentation
I don't understand how to logout using submit. I've added to following to the top of the page:
Now, what should I do in the
onclick
of the logout button?