I tried implementing the hooks.server.ts in Svelte and get an error:
Argument of type 'Handle' is not assignable to parameter of type 'SvelteKitAuthConfig | ((event: RequestEvent>, string | null>) => PromiseLike)'.
Type 'Handle' is not assignable to type '(event: RequestEvent>, string | null>) => PromiseLike'.
Types of parameters 'input' and 'event' are incompatible.
I installed the dependencies and put the file in the /src folder. Is there something else I need to do to "satisfy" the Handle?
Hello Neil Moses
Thanks for the feedback.
Now regarding the query you had, can you compare your code with the one in this GitHub repo - github.com/aakash14goplani/SvelteKitAuth
I believe that the file placement or a missing dependency is causing this problem
Neil Moses
Thank you for the excellent blog!
I tried implementing the hooks.server.ts in Svelte and get an error:
Argument of type 'Handle' is not assignable to parameter of type 'SvelteKitAuthConfig | ((event: RequestEvent>, string | null>) => PromiseLike)'. Type 'Handle' is not assignable to type '(event: RequestEvent>, string | null>) => PromiseLike'. Types of parameters 'input' and 'event' are incompatible.
I installed the dependencies and put the file in the /src folder. Is there something else I need to do to "satisfy" the Handle?
Thanks, Neil