Svelte · Senior · Question 23 of 75

Why is an auth check only in +layout.server.js risky?

Explanation

SvelteKit docs warn about this: a layout guard doesn't protect child data loads by itself.

Further reading

Problem with a question

Svelte · Senior · question 23

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz