Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 688 Bytes

File metadata and controls

21 lines (12 loc) · 688 Bytes

Cloudflare Workers

Cloud Auth is fully compatible with Cloudflare Workers and can verify requests like this.

npm create feathersdev@latest server --platform cloudflare --app-id "<your-app-id>"

Verifier

An authenticateRequest function that validates an incoming web standard request can be implemented in src/authenticate.ts like this:

<<< @/examples/server/cloudflare/src/authenticate.ts

Worker

It can then be used in a Cloudflare worker like this:

<<< @/examples/server/cloudflare/src/index.ts

The full Cloudflare Worker example can be found here.