TLDR Web Dev · ARTICLES & TUTORIALS

HOW TO ROLL YOUR OWN AUTH IN JAVASCRIPT & TYPESCRIPT

robinwieruch.de13 min read

Summary from the TLDR Web Dev newsletter

Rolling your own session-based auth in JS/TS is useful for understanding core web authentication concepts. This article goes over cookie management, password hashing using Argon2, and framework-agnostic examples for sign up, sign in, and sign out functions.