Cory Virok

Results 37 comments of Cory Virok

FWIW, I think the simplest way to describe the *correct* way of handling authentication is to say, all authentication logic needs to go into `hooks.server.ts` before the call to `resolve(event)`....

Noodling on the above for a second... You could also appropriate layout groups for role based access control. This opens up some interesting possibilities like nested ACL checks. E.g. "/"...

Ya I'm with you on each point. I don't think the solution I added above is a good solution, just one that works with the framework as it is. Regarding...

I don't claim that this is the right way, only a convenient, (albeit hacky) way to do things. I've implemented it in my project and it does indeed work. I'd...

That seems to be the approach used in [simple-svelte-autocomplete](https://github.com/pstanoev/simple-svelte-autocomplete) which seems to work fairly well. Although it's overloaded with more functionality than I need. Also, I wouldn't include "unbounded sets"...