route protected by middleware auth always available after logout, using angular v17 form and adonisjsV5 #4297
Unanswered
dev-passion76
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I am using Angular with forms for logging in, and AdonisJS V5 with routes for login/logout and users (a route to display a list of users).
The login works fine, and there are no errors with logout. However, After logout, I can still use the route for users, which is protected by the auth middleware. If I try to manually delete the cookie on the client side, my users route returns an unauthorized status, so that part is working correctly.
to reproduce issue (or not ;) ) a repo is available.
https://github.com/dev-passion76/angular_adonisjs
apiAuth Directory => adonijs
forms =>Angular
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions