What's the best way to do authentication in modern applications

Security, Web Development & Frontend(neciudan.dev)view on HackerNews
authenticationtoken storagelocalStoragecookiesBFFsecurityweb developmentfrontend

Author: freediver

Date: 7/11/2026

Article Summary:
This article discusses the best ways to implement authentication in modern web applications, covering various methods such as storing tokens in localStorage, cookies, and using a Backend for Frontend (BFF) pattern to improve security.