Antoni
Antoni
Explore posts from servers
BABetter Auth
Created by Antoni on 3/28/2025 in #help
How can I extend the organisation plugin?
I need organizations for my tool that have teams, where I can select the active team. It should behave similarly to how it works with the organization, but within the organization.
2 replies
BABetter Auth
Created by Antoni on 3/28/2025 in #help
[# Drizzle Adapter]: The model "team" was not found in the schema object. Please pass the schema dir
Trying to active the teams on organization, already did a migration, but still not able to add it.
3 replies
BABetter Auth
Created by Antoni on 3/27/2025 in #help
Stripe sync subscriptions
How can I sync subscriptions which got created with stripe dashbaord that I have that subscription in my database as well? I using the stripe plugin so far
2 replies
BABetter Auth
Created by Antoni on 3/25/2025 in #help
How can I make better-auth typesafe?
No description
2 replies
BABetter Auth
Created by Antoni on 3/22/2025 in #help
Stripe migration does not work
I am using a postgres and drizzle for my project, I just added the better-auth/stripe plugin to my project. When I try to make a mirgration it shows that there are no changes, how can I trigger the migration other wise?
3 replies
TTCTheo's Typesafe Cult
Created by Antoni on 3/20/2025 in #questions
Improve perfomance with app-router
Does you some tips to improve the switch between routes?. I already using <Link> and SSR but it stills feels slow.
3 replies
BABetter Auth
Created by Antoni on 3/19/2025 in #help
INVALID_ORIGIN when I try to check organization slug or create
I am not able to check slug, create new organization etc. I always getting and 403, but sign-in works fine
6 replies
BABetter Auth
Created by Antoni on 3/19/2025 in #help
How can I prevent rerendering while changing route
I am currently using the app router in next.js but its rerenders everytime when I change the route, how can I prevent this. here my authClient and my Organization Switch as file added as well.
import { organizationClient } from "better-auth/client/plugins"
import { createAuthClient } from "better-auth/react"

export const authClient = createAuthClient({
baseURL: process.env.BETTER_AUTH_URL,
plugins: [
organizationClient(),
],
})
import { organizationClient } from "better-auth/client/plugins"
import { createAuthClient } from "better-auth/react"

export const authClient = createAuthClient({
baseURL: process.env.BETTER_AUTH_URL,
plugins: [
organizationClient(),
],
})
3 replies
BABetter Auth
Created by Antoni on 3/17/2025 in #help
Delete User return db error
I want to delete a user, which is also the admin of an organization. Do I need to remove all admin, data manual? Can I also do a "soft" delete and just flag the user that he is deleted instead of removing him from the database?
update or delete on table "pd_user" violates foreign key constraint "pd_member_user_id_pd_user_id_fk" on table "pd_member"
update or delete on table "pd_user" violates foreign key constraint "pd_member_user_id_pd_user_id_fk" on table "pd_member"
2 replies
BABetter Auth
Created by Antoni on 2/7/2025 in #help
Organisation accept invitation throws error
trying to validate my invitation on the server side bad getting [Error [BetterCallAPIError]: API Error: BAD_REQUEST Invitation not found what am I missing? I checked the id on the db as well it seams all right, what am I missing?
const acceptInvitation = await auth.api.acceptInvitation({
headers: await headers(),
body: {
invitationId
},
}).catch((error) => {
console.error('error', error)
})
const acceptInvitation = await auth.api.acceptInvitation({
headers: await headers(),
body: {
invitationId
},
}).catch((error) => {
console.error('error', error)
})
2 replies
TTCTheo's Typesafe Cult
Created by Antoni on 7/14/2024 in #questions
[t3-turbo]: Redirect does not work in app
I am using t3-turbo stack and not able to automate close the signIn window after succesfull sign in, when I close it by hand the sign in session did not get passed.
3 replies
TTCTheo's Typesafe Cult
Created by Antoni on 7/4/2024 in #questions
Auth.Js with t3 turbo stack
Whats the difference between the https://github.com/t3-oss/create-t3-turbo/blob/main/apps/auth-proxy/routes/r/%5B...auth%5D.ts and the https://github.com/t3-oss/create-t3-turbo/blob/main/packages/auth/src/config.ts file, did I need to have duplicated code for using a new authProvider? I tried to add credentialsProvider but did not get the sense why i need to add it twice.
1 replies