Cloudflare JWT Auth

Signs in Payload users from Cloudflare Access JWT tokens and creates missing users

Community 0 3/wk MIT v0.0.1

Installation

pnpm add @nivoventures/payload-cloudflare-jwt-auth

About

Cloudflare JWT Auth lets Payload accept logins that Cloudflare Access has already checked. When a request carries a Cloudflare Access token, the token's signature is verified against Cloudflare's published keys, and the user's email address is read from it. If no user exists for that email, one is created on the spot, so teams behind Zero Trust policies do not need a separate password for the CMS. Local password login can be turned off while the email field stays in the users table. The product needs a Cloudflare Access application with JWT enabled and a policy audience value.

Package info

Package name
@nivoventures/payload-cloudflare-jwt-auth
Latest version
0.0.1
Unpacked size
12 kB
License
MIT
Weekly downloads
3
Last publish
May 28, 2025

More from nivoventures

View profile

Auto-login strategy that signs every visitor in as one fixed local user