Gridlock Authentication System

Note

Gridlock is an authentication system built for React applications. This documentation will guide you through installation, usage, and API reference.

Contents

Getting Started

Gridlock provides a simple and secure way to manage authentication in your React apps.

  • Easy integration with React hooks and components

  • JWT-based authentication

  • Supports login, signup, and logout flows

  • Customizable UI components

Quick Example

import { useGridlock } from 'gridlock-auth';

const { login, logout, user } = useGridlock();

// Login example
login('email@example.com', 'password123')
  .then(response => console.log('User logged in:', response))
  .catch(err => console.error('Login failed:', err));