Saw Ye Yint Aung.

Writing

Notes from building on the web.

What I run into while building web apps, how I solved it, and what I learned along the way.

November 25, 2026PostgreSQL Foreign Keys and JOINSplit data into linked tables with primary and foreign keys, insert rows in the right order, then put it back together with JOIN.PostgreSQLNovember 22, 2026JWT Signing KeysWhy one shared JWT secret stops being enough, how key pairs fix it, and how to check tokens signed by a login provider like Auth0, Clerk or Cognito.SecurityNovember 22, 2026Refresh Tokens ExplainedWhy JWT logins use two tokens, how long each should last, how rotation catches a stolen refresh token, and where web and mobile apps should keep them.SecurityNovember 20, 2026SameSite Cookies ExplainedWhat SameSite=Strict, Lax and None mean, worked through with one example, and why Lax is the right default for a login cookie.SecurityNovember 20, 2026Sessions ExplainedHow session-based login works: the random id, the cookie that carries it, the server-side lookup, and how to build it safely in TypeScript.SecurityNovember 19, 2026JWT ExplainedWhat a JSON Web Token is, what's inside one, how the signature works, and how to create and check them safely in TypeScript.SecurityNovember 19, 2026OWASP API Security Top 10The ten most common ways APIs get broken, according to OWASP's 2023 list.SecurityNovember 15, 2026PostgreSQL Data TypesText, bytes, integers, floats, money, timestamps and auto-numbered ids: which PostgreSQL column type to pick, and why it matters.PostgreSQLNovember 15, 2026PostgreSQL Basic QueriesInsert, update, delete, select, sort, search, page and count: the PostgreSQL queries you use every day, all together so you don't have to search for each one.PostgreSQL
© 2026 Saw Ye Yint Aung