Skip to content

types mismatch #11

@flxxxxddd

Description

@flxxxxddd

Plugin Version

1.0.0

Better Auth Version

1.5.0

Description

better-auth-telegram@1.0.0 exposes $ERROR_CODES as plain string, while better-auth@1.5.x expects RawError objects for BetterAuthPlugin. That causes the assignability error in TS only.
So, telegram(...) plugin error: library type mismatch/version compatibility.

could this be related to the better auth 1.5.0 update

Actual Behavior

Type
{ schema: { user: { fields: { telegramId: { type: "string"; required: false; unique: false; input: false; }; telegramPhoneNumber: { type: "string"; required: false; unique: false; input: false; }; telegramUsername: { ...; }; }; }; account: { ...; }; }; ... 4 more ...; id: "telegram"; }
is not assignable to type BetterAuthPlugin.

Property 'signInWithTelegramOIDC' does not exist on type '{ useListPasskeys: () => AuthQueryAtom<Passkey[]>; } & { signIn: { username: <FetchOptions extends ClientFetchOption<Partial<{ username: string; password: string; rememberMe?: boolean | undefined; callbackURL?: string | undefined; }> & Record<...>, Partial<...> & Record<...>, Record<...> | undefined>>(data_0: Pretti...'. (ts 2339)

Authentication Flow

Other

Runtime

Node.js

Runtime Version

25.4.0

Database Adapter

Other

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions