Skip to content

The inferred type of 'auth' cannot be named without a reference #2123

@guptaashwanee

Description

@guptaashwanee

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

setup better-auth in express node application.

Current vs. Expected behavior

The inferred type of 'auth' cannot be named without a reference to '../../node_modules/better-auth/dist/shared/better-auth.BAfIsot3.js'. This is likely not portable. A type annotation is necessary.ts(2742)

const auth = betterAuth({

});

What version of Better Auth are you using?

^1.2.5

Provide environment information

- OS: Mac os

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglockedLocked conversations after being closed for 7 days

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions