Anay-208
Anay-208
Explore posts from servers
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
I m only using anonymous login and nothing else
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
maybe you can try to replicate it in wsl?
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
In gihub codespaces I don't get this error
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
Yes
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
Someone also in my team is getting the same error
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
For some reason, it works fine with github codespaces, why is that
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
I'm on windows with wsl if it could cause it
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
No description
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
-# auth/index.ts
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "@/db";
import { anonymous } from "better-auth/plugins"

export const auth = betterAuth({
emailAndPassword: {
enabled: true
},
// TODO: Social Providers
database: drizzleAdapter(db, {
provider: "pg",
}),
plugins: [anonymous()]
});
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "@/db";
import { anonymous } from "better-auth/plugins"

export const auth = betterAuth({
emailAndPassword: {
enabled: true
},
// TODO: Social Providers
database: drizzleAdapter(db, {
provider: "pg",
}),
plugins: [anonymous()]
});
-# auth/client.ts
import { createAuthClient } from "better-auth/client"
import { anonymousClient } from "better-auth/client/plugins"

export const authClient = createAuthClient({
plugins: [
anonymousClient()
]
})
import { createAuthClient } from "better-auth/client"
import { anonymousClient } from "better-auth/client/plugins"

export const authClient = createAuthClient({
plugins: [
anonymousClient()
]
})
-# app/api/auth/[...all]/route.ts
import { auth } from "@/auth";
import { toNextJsHandler } from "better-auth/next-js";

export const { POST, GET } = toNextJsHandler(auth);
import { auth } from "@/auth";
import { toNextJsHandler } from "better-auth/next-js";

export const { POST, GET } = toNextJsHandler(auth);
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
I'll share config
19 replies
BABetter Auth
Created by Anay-208 on 4/9/2025 in #help
2025-04-09T13:12:33.351Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR [AggregateError: ]
Nextjs
19 replies