---
title: "Comment by Neil Moses on \"Step-by-Step Guide to using custom OAuth provider with SvelteKitAuth\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth/668ae6b11b79bca965066145/comment/66d8885514479f8812f052f2"
---

[Discussion](https://hashnode.com/posts/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth/668ae6b11b79bca965066145)

Comment [Step-by-Step Guide to using custom OAuth provider with SvelteKitAuth](https://hashnode.com/posts/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth/668ae6b11b79bca965066145)

[Neil Moses](https://hashnode.com/@ndmoses)

[Sep 4, 2024](https://hashnode.com/posts/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth/668ae6b11b79bca965066145/comment/66d8885514479f8812f052f2)

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

[Aakash Goplani](https://hashnode.com/@aakashgoplani)

[Sep 29, 2024](https://hashnode.com/posts/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth/668ae6b11b79bca965066145/comment/66d8885514479f8812f052f2#reply-66f9196a5837f0633261c322)

Hello [Neil Moses](https://hashnode.com/@ndmoses) 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](https://github.com/aakash14goplani/SvelteKitAuth) I believe that the file placement or a missing dependency is causing this problem
