rabi.
  • Home
  • Writing
  • Snippets
  • System Design
  • Tools
Snippets

Snippets / Tags

auth

3 auth code snippets across 2 languages. Copy-paste solutions from production code.

3

snippets

aws cli

2 snippets

aws ecr get-login-password: Docker Login to ECR

Use aws ecr get-login-password piped to docker login to authenticate with a private Amazon ECR registry. Cross-region included.

aws-cliecrdocker+2
BEGINNERJun 7, 2026

Debug Which AWS Identity You Are Using

Use aws sts get-caller-identity to see which AWS account, IAM user, and role your CLI is currently authenticated as.

aws-cliiamsts+2
BEGINNERApr 20, 2026

nextjs

1 snippet

Auth-Gated proxy.ts in Next.js 16

A proxy.ts that checks the session cookie and redirects unauthenticated requests away from protected routes. Node.js runtime, no Edge.

nextjsproxy-tsauth+2
INTERMEDIATEApr 16, 2026
rabi.

Building production software and writing about what I figure out.

SDE II at Amazon

Content

  • Writing
  • Snippets
  • System Design Notes
  • Tools

Snippets

  • Java
  • AWS CLI
  • React

Popular Tags

  • React Hooks
  • TypeScript
  • Spring Boot
  • Next.js

Explore

  • About
  • Professional Journey
  • Contact
  • Search
  • Submit a Snippet
  • RSS Feed

Connect

Let's build something together.

Send a message →

Newsletter

Weekly posts on backend engineering and system design.

Subscribe →

© 2026 Rabinarayan Patra. All rights reserved.

Privacy PolicyDisclosureBuilt with Next.js