---
title: "Discussion on \"Step-by-Step Guide to using custom OAuth provider with SvelteKitAuth\" | Hashnode"
description: "Discussion on \"Step-by-Step Guide to using custom OAuth provider with SvelteKitAuth\". Chapter 4 of Comprehensive Guide to SvelteKitAuth: Secure Authentication for SvelteKit Apps"
url: "https://hashnode.com/posts/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth/668ae6b11b79bca965066145"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Step-by-Step Guide to using custom OAuth provider with SvelteKitAuth](https://blog.aakashgoplani.in/step-by-step-guide-to-using-custom-oauth-provider-with-sveltekitauth?utm_source=hashnode&utm_medium=feed)

Chapter 4 of Comprehensive Guide to SvelteKitAuth: Secure Authentication for SvelteKit Apps

Jul 7, 2024 · 4 min read · blog.aakashgoplani.in  
Read the article

-   [#sveltekitauth](https://hashnode.com/tag/sveltekitauth)
-   [#auth0](https://hashnode.com/tag/auth0)
-   [#sveltekit](https://hashnode.com/tag/sveltekit)
-   [#authjs](https://hashnode.com/tag/authjs)

## Written by

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

@aakashgoplani · Mumbai, India

  
[View profile](https://hashnode.com/@aakashgoplani)

Frontend Dev. Mostly Angular and Svelte.

Senior Frontend Dev. Mostly Angular and Svelte. I will be sharing my day-to-day learning experiences here with the community.

## Responses 1

Markdown supported · ⌘↵ to post

[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
