---
title: "Discussion on \"SvelteKit Authentication using SvelteKitAuth and OAuth providers: A Comprehensive Guide\" | Hashnode"
description: "Discussion on \"SvelteKit Authentication using SvelteKitAuth and OAuth providers: A Comprehensive Guide\". SvelteKit Authentication using SvelteKitAuth and OAuth providers: A Comprehensive Guide. SvelteKit Authentication using SvelteKitAuth and Auth0."
url: "https://hashnode.com/posts/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide/647c65b290ea49e6e1492f09"
---

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

Discussion

# [SvelteKit Authentication using SvelteKitAuth and OAuth providers: A Comprehensive Guide](https://blog.aakashgoplani.in/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide?utm_source=hashnode&utm_medium=feed)

SvelteKit Authentication using SvelteKitAuth and OAuth providers: A Comprehensive Guide. SvelteKit Authentication using SvelteKitAuth and Auth0.

Jun 4, 2023 · 18 min read · blog.aakashgoplani.in  
Updated Jul 14, 2024  
Read the article

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

## 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 3

Markdown supported · ⌘↵ to post

[Anton](https://hashnode.com/@0x416e746f6e)

[Mar 1, 2024](https://hashnode.com/posts/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide/647c65b290ea49e6e1492f09/comment/65e1ac7e889513ff02ea80c6)

Thanks for a very thorough guide! A follow-up question: once this all is set-up and working, how to run it in production mode? For some reason, once built is does not work (neither in `vite preview`, nor in `node build/index.js`).

[James Woodley](https://hashnode.com/@lightestnight)

[Jul 23, 2023](https://hashnode.com/posts/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide/647c65b290ea49e6e1492f09/comment/64bd9b610ddc0bf1f8dd5036)

signOut doesn't seem to clear any of the cookies. Otherwise this seems to be working great - any idea why sign out doesn't actually sign out?

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

[Jul 24, 2023](https://hashnode.com/posts/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide/647c65b290ea49e6e1492f09/comment/64bd9b610ddc0bf1f8dd5036#reply-64bde5040ddc0bf1f8dd53f5)

Strange!! Works well for me though! Would it be possible for you to create a minimal reproducible example and share it with me?

[James Woodley](https://hashnode.com/@lightestnight)

[Jul 24, 2023](https://hashnode.com/posts/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide/647c65b290ea49e6e1492f09/comment/64bd9b610ddc0bf1f8dd5036#reply-64beaad656ce01179f5bff73)

[Aakash Goplani](https://hashnode.com/@aakashgoplani) I've dropped you a connection on LinkedIn, hopefully we can chat it through. Thanks!

[Nathan](https://hashnode.com/@nem)

[Jul 15, 2023](https://hashnode.com/posts/sveltekit-authentication-using-sveltekitauth-and-oauth-providers-a-comprehensive-guide/647c65b290ea49e6e1492f09/comment/64b271450470cd817f0ddebc)

Great article thanks for sharing
