Saw Ye Yint Aung.
Work
Experience
Skills
Blog
Get in touch
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.
All
PostgreSQL
Security
Search posts
November 25, 2026
PostgreSQL Foreign Keys and JOIN
Split data into linked tables with primary and foreign keys, insert rows in the right order, then put it back together with JOIN.
PostgreSQL
November 22, 2026
JWT Signing Keys
Why 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.
Security
November 22, 2026
Refresh Tokens Explained
Why 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.
Security
November 20, 2026
SameSite Cookies Explained
What SameSite=Strict, Lax and None mean, worked through with one example, and why Lax is the right default for a login cookie.
Security
November 20, 2026
Sessions Explained
How session-based login works: the random id, the cookie that carries it, the server-side lookup, and how to build it safely in TypeScript.
Security
November 19, 2026
JWT Explained
What a JSON Web Token is, what's inside one, how the signature works, and how to create and check them safely in TypeScript.
Security
November 19, 2026
OWASP API Security Top 10
The ten most common ways APIs get broken, according to OWASP's 2023 list.
Security
November 15, 2026
PostgreSQL Data Types
Text, bytes, integers, floats, money, timestamps and auto-numbered ids: which PostgreSQL column type to pick, and why it matters.
PostgreSQL
November 15, 2026
PostgreSQL Basic Queries
Insert, 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