Skip to main content

Auth & Permissions

We have recently introduced the support of authentication wrapper to react navigation wrapper. The auth wrapper takes the two arguments One is the Component it self and other is the Unauthenticated Component, it validates if user is authenticated, if yes then it renders the component otherwise it checks if Unauthenticated component is passed then it renders that else it redirect to login

Screenshot 2022-11-28 at 1 39 51 AM

In order to setup auth permission to route object you need to set property auth: true, you can also pass unauthenticated component as shown below

Screenshot 2022-11-28 at 2 10 32 AM