Cloudflare Pages + D1

Your own “Sign in with X” service

AuthBridge is a starter identity service built for Cloudflare Pages in advanced mode. It includes user sign up, user sign in, a developer approval workflow, OAuth authorization code flow, user consent, app registration, token exchange and a user info endpoint.

What is included

  • Account system with password hashing and session cookies
  • Developer access request + admin approval
  • OAuth authorization code flow with optional PKCE for public clients
  • Consent screen for third-party websites and apps
  • Opaque access tokens + user profile endpoint
  • Weglot-ready pages for auto translation

Important note

This project is a practical custom auth service starter. It is designed to really run on Cloudflare Pages + D1, but for serious production use you should still add email verification, password reset, rate limiting, audit logs and stronger OIDC features such as asymmetric JWT signing and a JWKS endpoint.