whatisgithub

What is login-with-cloudflare?

zeke/login-with-cloudflare — explained in plain English

Analysis updated 2026-05-18

13TypeScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A reference demo showing how to let users log in with their Cloudflare account using OAuth, instead of API tokens.

Mindmap

mindmap
  root((login-with-cloudflare))
    What it does
      OAuth login demo
      Reads Cloudflare account
      Server-side token
    Tech stack
      TypeScript
      Cloudflare Workers
      OAuth
    Use cases
      Add Cloudflare login
      Read-only account access
      Study OAuth reference
    Audience
      Developers
      Cloudflare app builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Learn how to implement Cloudflare OAuth login in your own application.

USE CASE 2

Let users grant your app limited, read-only access to their Cloudflare account without sharing API tokens.

USE CASE 3

Build and deploy a small app on Cloudflare Workers that reads a user's Cloudflare product usage.

USE CASE 4

Study a reference implementation of Cloudflare's self-managed OAuth client feature.

What is it built with?

TypeScriptCloudflare WorkersOAuth

How does it compare?

zeke/login-with-cloudflareandersondanieln/hexllamaantonlobanovskiy/agent-tmux-web
Stars131313
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Cloudflare account and deployment to Cloudflare Workers.

So what is it?

Cloudflare is a web infrastructure company that offers services like DNS, firewalls, content delivery, and serverless computing. This repository is a working demo that shows how a third-party application can let users sign in with their Cloudflare account, in a way that does not require the user to generate and paste an API token. The approach used here is called OAuth, a widely used standard for letting one service request limited access to another service on behalf of a user. Instead of copying credentials, the user clicks a login button, gets sent to Cloudflare to approve the request, chooses which of their Cloudflare accounts to share, and is then sent back to the app. The app receives a token that lets it call Cloudflare's own APIs on behalf of the user, but only within the specific permissions the user approved. In this demo, those permissions are read-only. After login, the app uses the access it was granted to check which Cloudflare products the user's account appears to be using, then shows a brief summary. The access token is stored on the server side rather than in the user's browser, which is a standard security practice. The app itself is built and deployed on Cloudflare Workers, which is Cloudflare's own serverless hosting platform. The README describes this as a reference implementation, meaning it is meant to be studied and adapted by developers who want to build their own apps that use Cloudflare's new self-managed OAuth client feature, announced in June 2026. The project is written in TypeScript and includes a live demo link.

Copy-paste prompts

Prompt 1
Explain how the OAuth login flow works in this login-with-cloudflare demo.
Prompt 2
Walk me through deploying this project to Cloudflare Workers.
Prompt 3
How does this app keep the Cloudflare access token secure on the server side?
Prompt 4
What permissions does this demo request from a user's Cloudflare account?

Frequently asked questions

What is login-with-cloudflare?

A reference demo showing how to let users log in with their Cloudflare account using OAuth, instead of API tokens.

What language is login-with-cloudflare written in?

Mainly TypeScript. The stack also includes TypeScript, Cloudflare Workers, OAuth.

How hard is login-with-cloudflare to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is login-with-cloudflare for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.