Skip to main content
Maneesha BarandeniyaFrontend engineer & product builder

OPEN SOURCE • REACT AUTH LIBRARY

cookiz-auth

Helps React developers integrate secure cookie-based authentication faster without storing tokens in localStorage.

NPM Package • Open Source • Aug 2025 - Present

Visit project

01

The challenge

React applications often rely on localStorage token handling, which can create security risks and repetitive authentication setup across projects.

02

The approach

Built a lightweight React authentication library using secure HTTP-only cookies, customizable backend endpoints, React context, and reusable auth hooks.

03

How it works

The package provides an AuthProvider, useAuth hook, configurable login/logout/user/refresh endpoints, TypeScript support, and backend-agnostic session handling.

04

Outcomes & impact

Helps React developers integrate secure cookie-based authentication faster without storing tokens in localStorage.

NPM
Published Package
HTTP-only
Cookie Auth
React
Auth Provider + Hook

05

Technology stack

ReactTypeScriptHTTP-only CookiesAuthenticationReact ContextNPM Package

HAVE SOMETHING IN MIND?

Let’s build something useful.

A product idea, an engineering challenge, or a hello. I’d love to hear it.