OAuthProxyOptions Bug

Hey šŸ‘‹ I’m hitting a TS4023 issue with better-auth. When I export my createAuthConfig, I get: TS4023: Exported variable 'createAuthConfig' has or is using name 'OAuthProxyOptions' from external module ".../better-auth/dist/plugins/oauth-proxy/index" but cannot be named. Version: better-auth@1.2.11 TS: 5.x Framework: Next 15.x Minimal repro:
import { betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import db from "./db";

export const createAuthConfig = () => ({
secret: "test",
database: prismaAdapter(db, { provider: "postgresql" }),
plugins: [],
});
import { betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import db from "./db";

export const createAuthConfig = () => ({
secret: "test",
database: prismaAdapter(db, { provider: "postgresql" }),
plugins: [],
});
--- is this a known issue, or should I open a GH issue for a re-export?
1 Reply
Dyl
Dyl•2w ago
@winchy Njugia If you upgrade to better-auth@1.3.x is the issue still there?

Did you find this page helpful?