You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type 'Auth<{ adapter: AdapterFunction<Readonly<{ getSessionAndUserBySessionId?: ((sessionId: string) => Promise<{ user: Readonly<{ id: string; } & Required<UserAttributes>>; session: Readonly<...>; } | null>) | undefined; } & Readonly<...> & Readonly<...>>>; env: "DEV" | "PROD"; middleware: Middleware<...>; transformDatab...'
is not assignable to parameter of type 'Auth<any>'.
Types have separate declarations of a private property 'adapter'.
I looks like there is some problem with adapter type in
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using
I have copied some examples from Lucia sveltekit and sveltekit-email and I am getting problems with typescript type checking.
E.g. in lib/lucia.ts I have included
This gives me the following type error on auth:
I looks like there is some problem with adapter type in
I also have problems in other places as well but I think they all relate to the lucia object so I will show this as an example.
Is there anyone else having similar problems?
Beta Was this translation helpful? Give feedback.
All reactions