Add Phone Authentication to Your JavaScript Application
Integrate carrier-grade phone authentication using the Glide Web Client SDK.
1
Install the SDK
Install the Glide Web Client SDK via npm or CDN.
For CDN: <script src="https://unpkg.com/@glideidentity/glide-fe-sdk-web">
2
Initialize the Client
Import PhoneAuthClient and configure your backend endpoints.
The SDK handles all communication with your server.
3
Verify Phone Number
Call authenticate() from a user gesture (click).
The SDK handles carrier detection, secure prompts, and verification.
4
Granular API (Recommended)
Use the granular API for more control:
prepare()- call early to check availabilityinvokeSecurePrompt()- from user gestureverifyPhoneNumber()- complete the flow
5
Backend Setup
Create backend endpoints using the Glide Backend SDK.
Available for Node.js, Go, Python, and Java.
6
Anti-Fraud Signals
Verification responses include 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-webRead-only