After creating a basic Angular application that consumes an API made with Laravel, I have encountered an issue. The login process sets a token in a cookie, but the success method is not triggering after sending a DELETE request to log out.
The system has only one user with these credentials:
Email: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="402b2c202726082b2c202726666b2725">[email protected]</a>
Password: admin12345
In the 'app.js' file, the code for setting the active status, authentication, and logout functions can be found. Despite the logic being correct, there seems to be a syntax error or some other issue causing the success method to fail on logout.
Note: The application is currently functioning better on Firefox rather than Chrome. Any insights into this would be appreciated.
For anyone interested in checking the repositories, they are public:
AngulAir Application:
AngulAirAPI: