Resource Center

Resource Center

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

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
SMS OTP vs WhatsApp OTP: Which Is Better for Authentication?
Case studies

SMS OTP vs WhatsApp OTP: Which Is Better for Authentication?

SMS OTP feels like a safe default — but once your user base grows, costs compound fast. WhatsApp OTP costs 70–90% less in most markets. Here's how they compare.

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
Authentication Solutions: A Complete Guide for Modern Apps
Industry

Authentication Solutions: A Complete Guide for Modern Apps

Choosing the right authentication solution is one of the most consequential technical decisions you'll make for your app. This guide covers every major auth type, a clear build-vs-buy framework, and a side-by-side comparison of the leading platforms.

Mar 13, 2026
HTTP 502 Bad Gateway: What It Means and How to Fix It
Engineering

HTTP 502 Bad Gateway: What It Means and How to Fix It

A 502 Bad Gateway error means the server acting as a gateway or proxy received an invalid response from an upstream server. Here is what causes it and how to fix it.

Mar 13, 2026
Webhooks vs APIs: What's the Difference?
Engineering

Webhooks vs APIs: What's the Difference?

Most products today integrate with payment platforms, identity providers, messaging services, and analytics tools. Two communication models power the majority of these integrations: APIs and webhooks.

Mar 13, 2026
How To Implement Passkeys with WebAuthn: Complete Developer Guide
Engineering

How To Implement Passkeys with WebAuthn: Complete Developer Guide

A practical developer guide to passkey authentication and WebAuthn. Covers how passkeys work, registration and login flows, JavaScript code examples, best practices, and testing tips.

Mar 13, 2026
Open Source WebAuthn and FIDO2 Authentication: Authgear vs Keycloak vs Hanko for Passkey-First Apps
Industry

Open Source WebAuthn and FIDO2 Authentication: Authgear vs Keycloak vs Hanko for Passkey-First Apps

Accelerate your strategic passwordless transition by comparing leading open-source WebAuthn/FIDO2 solutions. Evaluate platforms like Authgear and Keycloak for optimal security and application scalability.

Mar 13, 2026
Self-Hosted MFA for Financial and Government Organizations: On-Premise Authentication Without SaaS Lock-In
Industry

Self-Hosted MFA for Financial and Government Organizations: On-Premise Authentication Without SaaS Lock-In

Financial institutions and government agencies need modern MFA with data control. Self-hosted Authgear avoids SaaS risks, ensuring security, compliance, and full infrastructure ownership.

Mar 13, 2026 6 min read
What Is FIDO2? Complete Guide to FIDO Authentication
Industry

What Is FIDO2? Complete Guide to FIDO Authentication

FIDO2 is an open authentication standard that lets users sign in without passwords. This guide explains what FIDO2 is, how it works, how it compares to FIDO U2F, and how passkeys build on top of it.

Mar 10, 2026
What Is .well-known/openid-configuration? A Developer's Guide
Engineering

What Is .well-known/openid-configuration? A Developer's Guide

Learn what .well-known/openid-configuration is, what every field in the discovery document means, and how to fetch it for Google, Okta, Azure, Keycloak, or your own OIDC provider.

Mar 5, 2026
SSL vs TLS: What's the Difference and Why It Matters
Engineering

SSL vs TLS: What's the Difference and Why It Matters

SSL is deprecated and TLS is what your server actually uses — but why does everyone still call it SSL? Learn the history, the attacks that killed SSL, and what changed.

Mar 5, 2026
What Is an SSL Certificate? A Developer's Guide
Engineering

What Is an SSL Certificate? A Developer's Guide

An SSL certificate does two things: encrypts your connection and verifies your server's identity. Learn how it works, the 3 certificate types, and what's inside one.

Mar 5, 2026