alphabetworkers / alphabetworkersunion.org

Apache License 2.0
12 stars 21 forks source link

Member profile worker #270

Closed jonahbron closed 3 weeks ago

jonahbron commented 4 months ago

Creating a generic member profile worker that might be expanded to support other features in the future. For now it's only intended to fix #267

jonahbron commented 4 months ago

The core flow is working now. It can serve all users, including but not limited to those who need to delete their bank source; we should point the existing go.awu.fyi/payment link to this worker when it's launched so that we have more control over the login flow, and can tweak things as desired. This would only replace Stripe's email verification with our own.

All that remains now is to improve the design, it does not look nice at all yet.

jonahbron commented 4 months ago

@shiibainu I need someone with Stripe access to add an API key to the Cloudflare worker as an encrypted env var named STRIPE_API_KEY:

https://dash.cloudflare.com/394d48aba686b2466fe12e540c5d9466/workers/services/view/login/production/settings/bindings

Or send it to me directly in a disappearing Signal and I can add it.

mattrubin commented 4 months ago

@shiibainu I need someone with Stripe access to add an API key to the Cloudflare worker as an encrypted env var named STRIPE_API_KEY

@jonahbron, do you know what scopes this key needs? I can generate a new scoped key for you.

jonahbron commented 4 months ago

@mattrubin I'm not certain what scopes there are available, but the capabilities it needs are:

jonahbron commented 4 months ago

The current state of the function can be seen in production here:

https://login.alphabetworkersunion.workers.dev/

It can't do anything until the Stripe key is installed however.