Create Your Project
Sign Up
Create a free account at app.usegately.com and create your first project.
Get Your Project ID
Navigate to Settings > General to find your Project ID. You’ll need this to initialize the SDK.
Installation
- Script Tag
- NPM
- React
Add this script to your HTML The SDK will automatically initialize and be available as
<head> tag:window.Gately.Basic Usage
Check Authentication Status
Login a User
Sign Up a New User
Social Login
Logout
Protect Content
Add thedata-gately-protected attribute to any element you want to protect:
