Introduction
This is 42’s authentication module for React in combination with a specific Spring Security settings.
It can do the following things:
- Log the user in and out with your Spring application.
- Saving the current user in a store
- Send ‘fetch’ request with XSRF tokens and the cookies.
- Make a route only available for logged in users.
- Make a route available for specific users, based on properties of the current user.
- Make the state of the store available as handy set of hooks.