3 ms·
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.
by deepersprout 5y 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.
- zemo 5y agoif all the client needs is to see a 401, can't you just make a static /logout page that always renders a 401?