Skip to main content

Add Phone Authentication to Your React Application

Integrate carrier-grade phone authentication using the React hook from the Glide Web Client SDK.

1

Install the SDK

Install the Glide Web Client SDK in your React project.

2

Use the React Hook

Import usePhoneAuth from the React adapter. The hook provides reactive state and authentication methods.

3

Granular API (Recommended)

Call prepare() early to determine upfront if Magical Auth is available, or if you should use your OTP fallback.

4

Backend API Routes

Create API routes using the Glide Backend SDK (Node.js, Go, or Java).

5

Anti-Fraud Signals

The result from authentication includes SIM swap and device swap (IMEI change) fraud detection signals.

Each signal includes risk_level, age_band, carrier_name, and checked_at.

npm install @glideidentity/glide-fe-sdk-web
Read-only