Welcome Offer: 100 free verifications when you register!Claim your 100 free verifications
Authentica

Drop-in clients for JavaScript, React, Angular & Vue

Browser-safe authentication with a public key, framework adapters, and zero-config TypeScript types.

Supported Platforms

Pick your stack

Open the GitHub repo for installation, changelog, and full reference.

Install

Add Authentica to your project with a single command.

shell
# Vanilla JS / TypeScript / React / Vue
npm install @authentica/web

# Angular
ng add @authentica/angular

Quickstart

Send and verify an OTP in two calls — copy, paste, ship.

typescript
import { AuthenticaWeb } from "@authentica/web";

const client = new AuthenticaWeb({
  publicKey: import.meta.env.VITE_AUTHENTICA_PUBLIC_KEY,
});

// 1. Send the OTP
const { id } = await client.otp.send({
  channel: "sms",
  phone: "+9665XXXXXXXX",
});

// 2. Verify the code the user typed
const result = await client.otp.verify({ id, code: "123456" });
console.log(result.status); // "verified"

Ready to integrate?

Open the API reference for full endpoint details, or head back to the Developer Center.