Skip to content

openfort-xyz/recovery-endpoint-cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Recovery Endpoint - Cloudflare Workers

One-click deploy Openfort Shield recovery endpoint on Cloudflare Workers.

Deploy to Cloudflare

Environment Variables

Set these in the Cloudflare Workers dashboard during deployment:

  • SHIELD_PUBLISHABLE_KEY: Your Shield publishable API key
  • SHIELD_SECRET_KEY: Your Shield secret API key
  • SHIELD_ENCRYPTION_SHARE: Your Shield encryption share

API Endpoint

Creates a POST endpoint that:

  1. Accepts a POST request
  2. Calls the Shield encryption-session API
  3. Returns the session ID

Response format:

{
  "session": "session_id_here"
}

Local Development

npm install -g wrangler
wrangler dev

Features

  • Global edge network
  • Automatic scaling
  • Built-in environment variable management
  • TypeScript support

Support

For issues with Openfort Shield: Openfort Documentation

For Cloudflare Workers: Cloudflare Workers Docs

License

MIT

About

Recovery endpoint structure for Cloudflare's one-click deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •