elysiajs / elysia-lucia

Plugin for Elysia authenticaion using Lucia
MIT License
38 stars 5 forks source link

Property 'elysia' does not exist on type lucia #2

Open t0mri opened 11 months ago

t0mri commented 11 months ago
import Lucia from "@elysiajs/lucia-auth";

const { elysia, lucia, oauth } = Lucia({
    adapter: adapter(new PrismaClient())
})
[{
    "resource": "/T:/Projects/AGSCraft/labs/rough/src/server.tsx",
    "owner": "typescript",
    "code": "2339",
    "severity": 8,
    "message": "Property 'elysia' does not exist on type '{ lucia: Auth<{ env: \"DEV\" | \"PROD\"; adapter: ((E: LuciaErrorConstructor) => Readonly<{ getSessionAndUserBySessionId?: ((sessionId: string) => Promise<{ user: Readonly<any>; session: Readonly<...>; } | null>) | undefined; } & Readonly<...> & Readonly<...>>) | { ...; }; ... 9 more ...; experimental?: { ...; } | undef...'.",
    "source": "ts",
    "startLineNumber": 14,
    "startColumn": 21,
    "endLineNumber": 14,
    "endColumn": 27
}]
parweb commented 11 months ago

same

Nmans01 commented 10 months ago

+1