Skip to main content
The Gately SDK provides first-class React support with hooks, components, and a context provider.

Installation

The npm package is available but still in active development. Some features may be limited. Join our Slack community for updates and support.

Setup

Provider

Wrap your app with GatelyProvider:

With Options

Hooks

useGately

The main hook for authentication:

useAuth

Simplified auth hook:

Components

Login Form

Signup Form

Protected Routes

With React Router

Plan-Based Protection

User Profile Management

TypeScript

Full TypeScript support:

Best Practices

Wrap auth components in error boundaries to handle failures gracefully.
Always show loading indicators during auth operations.
Update UI optimistically for better perceived performance.
The SDK handles session persistence automatically via localStorage.

Need Help?

Join our Community

Get help from the Gately community on Slack

Contact Support

Reach out to our support team