Skip to content

userwidgets/api

Repository files navigation

Userwidgets

Environment

See docs in `Context/Environment.ts`

Generate private RSA:

Use utily/cryptly await (Signer.generate("RSA", "SHA-256", 4096)).export("private", "base64") (Demonstrated here )

Create KV

Run wrangler kv:namespace create store and update wrangler.toml with information from the result.

Email

Sending emails on cloudflare workers with Resend

Specify the environment variables (expected values documented in ./Context/Environment.ts):

Read more about email DMARC

Initialize first user

  1. POST /application
  2. POST /organization
  3. PATCH /organization?url=[frontend]
    • url is optional. if present userwidgets should send email in prod and console.log locally
    • In this request the users are specified
  4. POST /me

example requests

About

The userwidget applications api.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 10