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.
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).
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?