# Sveltekit Integration

**URL:** <https://community.auth0.com/t/sveltekit-integration/72204>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [October 27, 2021, 7:32pm UTC](https://community.auth0.com/t/sveltekit-integration/72204 "2021-10-27T19:32:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Svalinn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/svalinn/32/32638_2.png) [@Svalinn](https://community.auth0.com/u/Svalinn)\
**Post date:** [October 27, 2021, 7:32pm UTC](https://community.auth0.com/t/sveltekit-integration/72204/1 "2021-10-27T19:32:00Z")

</div>

I’m facing the following problem. I love svelte and i want to implement it in production enviroments. Now we are using Auth0 for the serverless Functions security and some SPA.

But for security reasons i need to make an app as a SSR with an auth0 login, i already searched but dont find anu way to implement it on SvelteKit on a easy way.

So, the question is, there is a “recommended” way to use Auth0 on Sveltekit Backend, or its better to change my backend to .Net or Go and use SvelteJS alone?

Ok, i made an example app with Sveltekit and Auth0 following [this instructions](https://chrisellis.dev/writing/sveltekit-boilerplate-auth0).

And it works, but the problem is that, as it says, it uses ‘@ auth0 / auth0-spa-js’, that is, SPA, when viewing the information in the browser, it shows it as is and that is what I want to avoid ( Cookies, local storage, etc).

[[Image]](https://i.imgur.com/MOaBLyb.png)

So my problem using this method is that I lose everything that is SSR, that is, for example, an httpOnly: true cookie, with all the information on the server side and not on the client side.

Maybe if i use this approach?

> **[Auth0 Express SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/express)**
>
> This tutorial demonstrates how to add user login, logout, and profile to a Node.js Express application.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 4, 2021, 8:31pm UTC](https://community.auth0.com/t/sveltekit-integration/72204/3 "2021-11-04T20:31:51Z")

</div>

Hi @Svalinn,

Welcome to the Auth0 Community!

Unfortunately, we don’t have an official sveltekit example or SDK at this time. The closest thing I can suggest would be our [nextjs SDK](https://github.com/auth0/nextjs-auth0), but that is obviously not the same thing.

I found an unofficial Auth0/SvelteKit Client, but this is totally outside of Auth0 and is not verified by us in any manner. Regardless, it may be worth checking out/contributing to.

> **[GitHub - rmunn/sveltekit-auth0-unofficial: An unofficial Auth0 library for...](https://github.com/rmunn/sveltekit-auth0-unofficial)**
>
> An unofficial Auth0 library for Svelte-Kit. Contribute to rmunn/sveltekit-auth0-unofficial development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 19, 2021, 8:32pm UTC](https://community.auth0.com/t/sveltekit-integration/72204/4 "2021-11-19T20:32:32Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
