Members can leave a workspace, plus key, email and Stripe fixes
Any member can now leave a workspace, and an organization API key stays inside its organization. A campaign sent from several servers goes out once, a repeated Stripe event is processed once, and a Redis timeout answers a 503 your app can retry.
Added
1- WorkspacesAny member can now leave a workspace, with Leave workspace in the SDK's settings from 1.0.0. The workspace's creator cannot leave, and neither can the person whose card pays for it: they get 409 WORKSPACE_OWNER_CANNOT_LEAVE or PAYER_STILL_PAYS. Separately, deleting an account is no longer refused when the person uses a Free workspace alone.
Improved
3- AuthenticationYou can now choose how long people stay signed in. Set refresh token lifetimes on the Security tab: an app's from 1 to 365 days, with an optional idle limit, and an agent's idle limit and maximum. A switch on the WorkOS provider card keeps people blocked by a company's directory out of your end-user count.
- ConsoleTheme and Contact support move into the avatar menu, and tables keep their rows while they refresh. Emptying the organization domain field now clears it. Old console addresses forward to the new ones, with their query and fragment.
- BillingOnly marketing email counts toward your plan's email quota, not sign-in or other transactional mail.
Fixed
8- SecurityAn organization API key now acts only on its own organization. It is refused on its creator's personal routes, such as the Security page and switching organization.
- SecurityThe member list returns only the fields the console shows, and a subscriber's name can no longer add a hidden recipient to an email.
- EmailA campaign sent from several servers now goes out once. Before, it could reach some people twice, or be marked sent while some batches never went out. Each batch is now sent and counted once.
- BillingA Stripe event sent again is no longer processed twice, and a change to your Stripe keys reaches every server at once. When Stripe reports the payment before the checkout, a period's plan credits are now granted once.
- BillingA person's Free plan now sends subscription.created, and a promotion code given at checkout sends subscription.discount_applied once. A Stripe endpoint made before 23 October needs two events added: customer.discount.created and invoice.voided.
- PlatformIf Redis (a data store BuildBase runs on) times out, sign-in and billing requests now answer a 503 your app can retry. Before, they answered a 500, or a 400 carrying the raw error. A cached public answer is now always a success, so an error is no longer replayed as a 200 for the cache's lifetime.
- PlatformA file uploaded under an unknown field name is now refused with a 400, instead of hanging.
- WorkspacesAn invitation sent with no landing address now lands on the app it was sent from. It used to land on the auth client's first redirect URL, such as localhost:3000.