Step-by-Step Guide to using custom OAuth provider with SvelteKitAuth
In the previous article, we covered the integration of a built-in OAuth provider with SvelteKitAuth. In this article, we will delve into integrating a custom OAuth provider with SvelteKitAuth.
A custom provider can be particularly useful when (a) you...
blog.aakashgoplani.in4 min read
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