Y
Hacker News
new
|
ask
|
show
|
jobs
by
deepersprout
1630 days ago
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.
1 comments
zemo
1630 days ago
if all the client needs is to see a 401, can't you just make a static /logout page that always renders a 401?
link