Create an AuthContext-component. The component should wrap the Navigation-component in App.tsx when used to make sure you have to be authenticated to reach all routes in the app. This is especially important on web since you can easily go directly to any routes by changing the URL without following the navigation flow in the app. The component has already been implemented in WorkORders and Notifications
Create an
AuthContext
-component. The component should wrap theNavigation
-component inApp.tsx
when used to make sure you have to be authenticated to reach all routes in the app. This is especially important on web since you can easily go directly to any routes by changing the URL without following the navigation flow in the app. The component has already been implemented in WorkORders and Notifications