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).
npm install @glideidentity/web-client-sdkRead-only