Dual Authentication in One ASP.NET Core App: JWT for API, Cookies for Web
Same codebase, same deployment. API routes use JWT bearer tokens, web routes use cookies. A 10-line policy selector makes them coexist without conflicts.
Technical notes, project documentation, and lessons learned across software, DIY, writing, and more.
Same codebase, same deployment. API routes use JWT bearer tokens, web routes use cookies. A 10-line policy selector makes them coexist without conflicts.
Most cookie banners are obnoxious because they're trying to get consent for tracking. If you're not tracking anyone, the whole thing gets simpler.
Your translations work, but users have to dig through browser settings to change languages. Let's build a dropdown that remembers their choice with cookies.