What is the v2 equivalent of addAuthorizeStep

How do I make sure a user is authorized before loading a view, and redirecting them to /login in they are not authorized?

Hi @djedi! For that, there is the generalized concept of lifecycle hooks. Here is one example how that can be used for authorization purpose: Router hooks - The Aurelia 2 Docs

1 Like