Skip to main content

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/web-client-sdk">

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 availability
  • invokeSecurePrompt() - from user gesture
  • verifyPhoneNumber() - complete the flow
5

Backend Setup

Create backend endpoints using the Glide Backend SDK.

Available for Node.js, Go, Python, and Java.

npm install @glideidentity/web-client-sdk
Read-only