Skip to content

Recommended approach for Auth Guard for svelte-kit apps #3911

Answered by thenbe
jerrythomas asked this question in Q&A
Discussion options

You must be logged in to vote

You can implement an auth guard with a single load function by making it reactive. Take a look at this paragraph from the docs.

If you want a visual example, here's a youtube video showing the process.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jerrythomas
Comment options

@DonTomato
Comment options

Answer selected by jerrythomas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@o3o-vc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants