Resource Center

Engineering

Stay updated with the latest best practices, product updates, and expert tips on building secure, seamless user experiences with Authgear.

What Is an SMS Sender ID? Types, Registration, and Trade-offs
Engineering

What Is an SMS Sender ID? Types, Registration, and Trade-offs

An SMS sender ID is the 'from' field of a text message: the name or number a message appears to come from. Here are the types, how alphanumeric sender IDs work, where registration is required, and the trade-offs for branding and deliverability.

Jul 24, 2026 8 min read
SMS Deliverability: Why Your Texts Fail (And How to Fix It)
Engineering

SMS Deliverability: Why Your Texts Fail (And How to Fix It)

SMS deliverability is the share of texts that actually reach a phone. When OTPs don't arrive, logins fail and you often still pay for the send. Here's why messages get lost and how to raise your delivery rate.

Jul 24, 2026 9 min read
What Is Silent Network Authentication (SNA)?
Engineering

What Is Silent Network Authentication (SNA)?

Silent Network Authentication verifies a user's phone number through the mobile carrier, with no SMS code to type. Here's how it works, where it beats SMS OTP, and where it still needs a backup plan.

Jul 24, 2026 9 min read
Best SMS API Providers Compared (2026)
Engineering

Best SMS API Providers Compared (2026)

Twilio, Vonage, Sinch, Bird, Plivo, and more: how the major SMS API providers compare on coverage, pricing, and OTP support, plus how to choose and where WhatsApp OTP saves money.

Jul 23, 2026 9 min read
What Is A2P SMS? (And Why It Costs What It Does)
Engineering

What Is A2P SMS? (And Why It Costs What It Does)

A2P SMS is how apps send OTPs, alerts, and marketing texts to users. It's a regulated, paid channel priced differently from personal texting. Here's what A2P means and what drives its cost.

Jul 23, 2026 7 min read
What Is CPaaS? A Developer's Guide to Communications APIs
Engineering

What Is CPaaS? A Developer's Guide to Communications APIs

CPaaS lets you add SMS, voice, WhatsApp, and OTP verification to your app through cloud APIs, without running any telecom infrastructure. Here's how it works, what it costs, and when to use it.

Jul 23, 2026 6 min read
RCS vs SMS: Key Differences, Cost, and Which to Use for OTP
Engineering

RCS vs SMS: Key Differences, Cost, and Which to Use for OTP

RCS is the feature-rich successor to SMS: richer messages, read receipts, encrypted chats. But for sending OTPs, cost and reach still matter most. Here's how they compare, and where WhatsApp fits.

Jul 22, 2026 8 min read
SMS API Pricing Explained: What You Actually Pay Per Message
Engineering

SMS API Pricing Explained: What You Actually Pay Per Message

SMS API pricing is more than a per-message rate. Here's what really drives your SMS OTP bill (destination rates, carrier fees, A2P charges, and fraud) and how to cut it.

Jul 22, 2026 9 min read
HTTP 401 vs 403: What's the Difference and Which to Return
Engineering

HTTP 401 vs 403: What's the Difference and Which to Return

401 means the server doesn't know who you are; 403 means it knows exactly who you are — and the answer is no. Learn how to fix each error and which one your API should return, with code examples.

Jun 3, 2026
MCP Authentication: How OAuth 2.1 Works in the Model Context Protocol
Engineering

MCP Authentication: How OAuth 2.1 Works in the Model Context Protocol

MCP servers expose your data to AI agents — so who checks the agent's ID? A developer's guide to the MCP authorization spec: OAuth 2.1, PKCE, protected resource metadata, and the full flow from 401 to token.

Jun 3, 2026
SCIM vs SAML: What's the Difference and When to Use Each
Engineering

SCIM vs SAML: What's the Difference and When to Use Each

SAML logs your users in. SCIM creates and manages their accounts. Learn how the two protocols divide the work in enterprise SSO, where they overlap, and why most deployments need both.

Jun 3, 2026
HTTP 401 Unauthorized: What It Means and How to Fix It
Engineering

HTTP 401 Unauthorized: What It Means and How to Fix It

A 401 Unauthorized error means the request lacks valid authentication. Here is what causes it, how it differs from 403, and how to fix it for OAuth, JWT, Basic Auth, and API key flows.

May 6, 2026
HTTP 403 Forbidden: What It Means and How to Fix It
Engineering

HTTP 403 Forbidden: What It Means and How to Fix It

A 403 Forbidden error means the server understood your request but refuses to fulfil it. Here is what causes it and how to fix it on Nginx, Apache, Cloudflare, and AWS.

May 6, 2026
HTTP 504 Gateway Timeout: What It Means and How to Fix It
Engineering

HTTP 504 Gateway Timeout: What It Means and How to Fix It

A 504 Gateway Timeout means a proxy waited too long for a response from the upstream server. Here is what causes it, how it differs from 502, and how to fix it on Nginx, Cloudflare, and AWS.

May 6, 2026
Supabase Auth vs Authgear for Next.js: Which Should You Choose?
Engineering

Supabase Auth vs Authgear for Next.js: Which Should You Choose?

Supabase Auth and Authgear are both production-ready for Next.js App Router — but they take fundamentally different approaches to authentication. This guide gives you a fair, practical comparison with a feature table, setup code for both, and clear guidance on when to choose each.

Mar 27, 2026
Next.js Session Management: Cookies, JWTs, and Server Sessions (2026)
Engineering

Next.js Session Management: Cookies, JWTs, and Server Sessions (2026)

Next.js session management is more nuanced than in a traditional server-rendered app. This guide covers stateful vs stateless sessions, secure cookie attributes, JWT signing with jose, token rotation, sliding sessions, and how to read session data across Server Components, Route Handlers, and Middleware.

Mar 27, 2026
Next.js Authentication: Complete Guide for App Router (2026)
Engineering

Next.js Authentication: Complete Guide for App Router (2026)

The App Router moves authentication to the server by default — but "moved to the server" doesn't mean "solved." This guide covers the full picture, from picking the right approach to writing your first protected Server Component, with working TypeScript code throughout.

Mar 27, 2026
Next.js API Route Authentication: How to Secure Your Endpoints
Engineering

Next.js API Route Authentication: How to Secure Your Endpoints

API routes in Next.js work differently from page protection — Route Handlers must return HTTP status codes, not redirects. This guide covers session cookies, Bearer tokens, RBAC, and Server Actions with complete TypeScript examples.

Mar 25, 2026
Next.js Security Best Practices (2026)
Engineering

Next.js Security Best Practices (2026)

Next.js has grown from a simple React framework into a full-stack platform — and with that power comes a wider attack surface. The App Router, Server Components, and Server Actions mean your authentication logic, database queries, and business rules all live in the same codebase as your UI.

Mar 25, 2026
Next.js Middleware Authentication: Protect Routes in App Router
Engineering

Next.js Middleware Authentication: Protect Routes in App Router

Learn how Next.js middleware works, how to configure the matcher, validate JWTs at the edge, and redirect unauthenticated users — with the CVE-2025-29927 bypass covered.

Mar 25, 2026
How to Add JWT Authentication to Next.js App Router (2026)
Engineering

How to Add JWT Authentication to Next.js App Router (2026)

Learn how to add JWT authentication to Next.js App Router — the right way. Covers httpOnly cookie storage, edge middleware with jose, and accessing JWT claims in Server Components.

Mar 20, 2026
How Much Does Two-Factor Authentication Cost? A 2026 Pricing Guide
Engineering

How Much Does Two-Factor Authentication Cost? A 2026 Pricing Guide

2FA isn't a single price — SMS OTP, WhatsApp OTP, TOTP, and passkeys have very different cost structures. Here's what each method actually costs at every scale.

Mar 17, 2026
What Is an SMS Pumping Attack? How to Detect and Prevent SMS Toll Fraud
Engineering

What Is an SMS Pumping Attack? How to Detect and Prevent SMS Toll Fraud

SMS pumping fraud is when bots flood your OTP endpoint with fake requests to premium-rate numbers — and you foot the bill. Here's how it works, how to detect it, and how to stop it.

Mar 17, 2026
Node.js Security Best Practices for Authentication
Engineering

Node.js Security Best Practices for Authentication

Authentication is the front door to your application — and in Node.js, getting it wrong is easier than you'd think. This guide walks through the Node.js security best practices every developer should follow when building or auditing an auth system.

Mar 13, 2026