We need to create an authentication page for users to access the control panel. Current structure is using http-only cookies so we do not need to do much than get the data and send it to the API.
Whenever a secured/private route is tried to be reached and API returned and unauthorised exception, we need to redirect the user to the authentication page.
We need to create an authentication page for users to access the control panel. Current structure is using http-only cookies so we do not need to do much than get the data and send it to the API.
Whenever a secured/private route is tried to be reached and API returned and unauthorised exception, we need to redirect the user to the authentication page.