airyrooms / maleo.js

Un-opinionated Universal Rendering Javascript Framework
MIT License
13 stars 7 forks source link

[FEATURE] Authentication Handler #189

Closed vanniaferdina closed 5 years ago

vanniaferdina commented 5 years ago

I need authentication feature on the framework, e.g. additional function that receive boolean (authorised/not) and redirection path.

alvinkl commented 5 years ago

We have added new function on @airy/maleo/utils named getMatchedRoutes to return all matching routes including all the properties you passed on routes.json file. And also we have set getInitialProps to block render until all the getInitialProps has been called, you can add authentication logic there.

I think those 2 things already satisfy your need, I'm going to close this issue. For further questions please continue on our discord channel. Thank you

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.