---
title: "Ayush Jain (@ayushjjainn) | Hashnode"
description: "Building cool things for the internet. Read the latest articles by Ayush Jain on Hashnode."
url: "https://hashnode.com/@ayushjjainn"
---

@ayushjjainn

# Ayush Jain

@ayushjjainn · Jaipur, RJ · Joined December 2025

Building cool things for the internet

### [I Broke my Git History Shipping a macOS App](https://ayushjjainn.hashnode.dev/rewriting-published-git-history?utm_source=hashnode&utm_medium=feed)

A postmortem: two accidental back-merges forced a five-ref Git history rewrite with atomic force-with-lease — and the shipped app never changed.

17 min read · [ayushjjainn.hashnode.dev](https://ayushjjainn.hashnode.dev/rewriting-published-git-history?utm_source=hashnode&utm_medium=feed)

[Sep 22](https://hashnode.com/posts/rewriting-published-git-history/6ab2a6e0b436da89b06a9a27)

### [Securing Apps: Password Hashing, RBAC, OAuth, and OpenID Connect](https://ayushjjainn.hashnode.dev/password-hashing-rbac-oauth-openid-connect?utm_source=hashnode&utm_medium=feed)

How apps really stay secure: password hashing with bcrypt, authentication vs authorization, RBAC, OAuth, and OpenID Connect, explained with Netflix.

44 min read · [ayushjjainn.hashnode.dev](https://ayushjjainn.hashnode.dev/password-hashing-rbac-oauth-openid-connect?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/password-hashing-rbac-oauth-openid-connect/6aaf18133747863e7e16414a) [Sep 19](https://hashnode.com/posts/password-hashing-rbac-oauth-openid-connect/6aaf18133747863e7e16414a)

### [Modern Database Access: Prisma, Drizzle, and ORMs Explained](https://ayushjjainn.hashnode.dev/prisma-drizzle-orms-databases?utm_source=hashnode&utm_medium=feed)

Learn databases from scratch, schema, keys, relations, SQL, Prisma, Drizzle, transactions, and scaling, in one complete guide with an Avengers twist.

38 min read · [ayushjjainn.hashnode.dev](https://ayushjjainn.hashnode.dev/prisma-drizzle-orms-databases?utm_source=hashnode&utm_medium=feed)

[Sep 15](https://hashnode.com/posts/prisma-drizzle-orms-databases/6aa97eb6d00a139451ddfc06)

### [Sessions vs JWT vs Cookies: Understanding Authentication Approaches](https://ayushjjainn.hashnode.dev/sessions-jwt-cookies?utm_source=hashnode&utm_medium=feed)

Sessions vs JWT vs Cookies, explained clearly: stateful vs stateless auth, what cookies actually do, the real differences, and when to use each.

14 min read · [ayushjjainn.hashnode.dev](https://ayushjjainn.hashnode.dev/sessions-jwt-cookies?utm_source=hashnode&utm_medium=feed)

[Sep 15](https://hashnode.com/posts/sessions-jwt-cookies/6aa9540909db1b9c8f0f79c1)

### [JWT Authentication in Node.js Explained Simply](https://ayushjjainn.hashnode.dev/jwt-authentication-nodejs?utm_source=hashnode&utm_medium=feed)

Learn JWT authentication in Node.js and TypeScript: what a JWT is, its three parts, the login flow, and how to protect routes with tokens.

15 min read · [ayushjjainn.hashnode.dev](https://ayushjjainn.hashnode.dev/jwt-authentication-nodejs?utm_source=hashnode&utm_medium=feed)

[Sep 14](https://hashnode.com/posts/jwt-authentication-nodejs/6aa86983e31d4c43b9dd1cbf)
