Skip to content

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

Closed 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: 5 comments 4 replies

Comment options

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

@DonTomato
Comment options

@eltigerchino
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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants