momentum icon indicating copy to clipboard operation
momentum copied to clipboard

Routing interceptor - initial page based on authorization logic

Open troncomputers opened this issue 3 years ago • 2 comments

Hi! Is there any way to handle some kind of "guard" for routing? How to handle token expiration? Right now the only solution is to check whether the token has expired on each page? Should I be able to override MomentumRouter.getActivePage(context), to apply my own logic for ActivePage?

troncomputers avatar Dec 10 '21 15:12 troncomputers

This is an interesting idea. Currently, there's no available method for this. But this is possible.

Will look into it.

xamantra avatar Dec 10 '21 23:12 xamantra

Can this be an immediate update ? Would really love to have this functionality.

auric-co avatar Feb 06 '22 17:02 auric-co