You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the current auth_guard works for simple purposes, we should keep an eye on the following issues with using +layout.svelte for guarding the app tree most effectively.
// Everything in the app route tree is protected behind user accounts.
$effect.pre(auth_guard);
^ This is not exactly true for routes below the +layout.svelte file. I'm researching a more secure solution and will see if I can open a PR at a future date once SvelteKit 2 is more stable.
The text was updated successfully, but these errors were encountered:
Closing as I learned more about SvelteKit and understand this is not as much a concern for SPA/CSR. The auth_guard can run on individual +page.js files safely.
While the current auth_guard works for simple purposes, we should keep an eye on the following issues with using +layout.svelte for guarding the app tree most effectively.
As raised in:
+layout.server.js
tree sveltejs/kit#6315^ This is not exactly true for routes below the +layout.svelte file. I'm researching a more secure solution and will see if I can open a PR at a future date once SvelteKit 2 is more stable.
The text was updated successfully, but these errors were encountered: