Hacker News new | past | comments | ask | show | jobs | submit login

Send an ajax request to your api with invalid credentials. The response returns a 401 and loggs the user out. Then redirect to the pre-login page.



if all the client needs is to see a 401, can't you just make a static /logout page that always renders a 401?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: