new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

creem/api-methods

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Creem createCheckout client method

Call `authClient.creem.createCheckout({productId, successUrl, discountCode, metadata})` to create a checkout session. productId is required. units defaults to 1. successUrl is the redirect URL after successful payment. discountCode is optional. metadata is optional additional data. customer is auto-populated from session. metadata auto-includes user ID as referenceId. requestId is an optional idempotency key.

Creem createPortal client method

Call `authClient.creem.createPortal()` to redirect users to manage their subscriptions, view invoices, and update payment methods. No parameters required.

Creem cancelSubscription client method

Call `authClient.creem.cancelSubscription()` to cancel a subscription. When database persistence is enabled, the subscription is found automatically for the authenticated user. Without database persistence, pass an object with `id` property containing the subscription ID.

Creem retrieveSubscription client method

Call `authClient.creem.retrieveSubscription()` to get subscription details for the authenticated user. Returns data with status, product.name, product.price, and product.currency.

Creem hasAccessGranted client method

Call `authClient.creem.hasAccessGranted()` to verify if the user has an active subscription. Requires database mode. Returns an object with hasAccess (boolean) and expiresAt (date). This checks if the user has access for the current billing period, so cancelled subscriptions may still grant access until the paid period ends.

Creem searchTransactions client method

Call `authClient.creem.searchTransactions({productId, pageNumber, pageSize})` to search transaction records for the authenticated user. productId is optional filter. pageNumber and pageSize are for pagination. Returns data.transactions array containing transaction objects with type, amount, and currency.

Give your agent this brain