add protected routes using sapper-rbac
Second shot; now using sapper-rbac. Seems I had to add the unrestricet route ( '/.*') last to make it work properly.
I dunno, maybe you want to add this as a branch too, to keep the original example clean?
@primavera133 I'm going to have a think about how I want to handle addons such as this yeah - it might be a lot of maintenance, but it also might be a nice idea to keep things clean as you say.
I built on both of your work here, replacing the backend with keycloak, and using passport + cookie-session instead of something custom:
https://github.com/CloudNativeEntrepreneur/sapper-authentication-demo