Getting Started
Phone number verification for web and mobile apps.
What is Phonelink?
Phonelink is a phone number verification SDK for web and mobile apps. It handles the entire verification flow — your app opens a secure browser session, the user verifies their phone number, and your server validates the resulting signed JWT.
How it works
- Your app calls
startAuth()which generates a cryptographic nonce and redirects to Phonelink - The user completes phone number verification on the Phonelink page
- Phonelink redirects back to your app with a signed JWT token
- Your app sends the token and nonce to your server
- Your server calls
verifyPhonelinkToken()to validate the JWT signature, issuer, audience, nonce, and verification status - On success, your server receives the verified phone number in E.164 format
Install
npm install phonelinkChoose your platform
Web (Vanilla JS)
Redirect-based flow for any web app
React
usePhonelink hook for React apps
Next.js
Full-stack recipe with App Router
Expo
In-app browser flow for React Native
Server verification
Every integration requires server-side token verification. See the Server Verification guide after setting up your client.