-
Notifications
You must be signed in to change notification settings - Fork 8
Utilities
The useAuth hook facilitates user authentication within the application, ensuring secure access and interaction between the user and the app. For more information you can check out the SignIn
page and see that that the signIn property from the useAuth hook is used to authenticate the user and in the hook you can provide the service request and return the response to the SignIn
page. Similar approach is used for sign out, to sign out the user you just need to trigger the signOut from the useAuth hook and it will reset the information about the user and this will sign out the user. If you want to setup google login or some other login logic you can do this by setting up it in the useAuth hook and use that in the component. You can think of it like an orchestration of some requests or triggering multiple things by just using the function provided by the hook.
This hook is used by the app internally for managing the role based routes and navigation. The role based routes and navigation is still in beta when the tests will be finished the docs will be updated.
##useLocale
Another hook used internally by the app to set up the Internationalization.
This hook is used to get the current path of the app.
The deepParser is used to parse the values that stored in localStorage by the redux-persist.