Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
deepersprout
· 4y ago · 0 comments
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.
Comments
[–]
zemo
4y 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?