RadiantFrog
Explore posts from serversBABetter Auth
•Created by RadiantFrog on 4/16/2025 in #help
Stripe Better-Auth Plugin
I have an issue with the Stripe plugin (or maybe Stripe itself).
Im implementing subscriptions and I'm getting conflicting events after a checkout in the Sandbox.
First I get a OnSubscriptionComplete, I use the status to update the user's proStatus to "active".
Secondly I get a onSubscriptionUpdate with "incomplete", so I use the status to update the user's proStatus to "incomplete".
Why do I get a "onSubscriptionUpdate" with "incomplete" after a succesful checkout?
3 replies
CCConvex Community
•Created by RadiantFrog on 4/6/2025 in #support-community
Local-first sync with Convex
Hello, I've read a bit about syncing mechanisms, but it seems there is no way to easily do this with Convex at this point in time?
5 replies
BABetter Auth
•Created by RadiantFrog on 4/5/2025 in #help
Long delay after logging in with Apple (white screen)
It works but it causes quite a delay. What can I do to fix this?
auth.ts
apple-auth-button.tsx
16 replies
BABetter Auth
•Created by RadiantFrog on 4/4/2025 in #help
Stripe creating subscription: Unauthorized 401
Hello, I'm running into an issue with Stripe Subscriptions whereas I cannot generate a new subscription for an user. I'm using @better-auth/strip and receive a 401 Unauthorized when I'm creating a subscription on the client. The only weird thing AFAIK is that I use the convexAdapter, so I cannot run migrations for stripe myself (but this seems unrelated to the unauthorized).
I've checked the .env.local keys a dozen times. I'm running a Tanstack Start app.
auth.tsx
45 replies
CCConvex Community
•Created by RadiantFrog on 4/4/2025 in #support-community
Tanstack: How to call a Convex mutation from createServerFn?
I'm lost on how I can use Convex from the serverFn in Tanstack. Here is my attempt
Here is my mutation
if there is any example boilerplate on how to call convex from the createServerFn handler that would be amazing. So I basically want to have some validations on the server side (does the user have enough credits)
I can see there is:
but that requires met to set which I cannot do in a Vite project.
4 replies
BABetter Auth
•Created by RadiantFrog on 4/3/2025 in #help
Cannot set additionalField when calling signUp.email
I'm trying to pass a
referredBy
field during user registration using signUp.email
, but TypeScript is rejecting it with the following error:
"Object literal may only specify known properties, and 'referredBy' does not exist in type "
1. I've properly configured referredBy
in my auth.ts
configuration:
2. In my RegisterForm.tsx
, I'm trying to pass the field like this:
35 replies