Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
deepersprout
on Jan 1, 2022
|
parent
|
context
|
favorite
| on:
Using HTTP Basic Auth in 2022
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
on Jan 2, 2022
[–]
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: