✅ Hello :) How do I suppose to create a post method to clean my cookie?
I have a post method which "log out" the user.
I have another method which log in the user and sends a cookie to the frontend.
Now, I want to use the log out in order to clean the cookie, this is the method:
The "auth-cookie" is the name of the cookie I initialized inside the Program.cs file:
But I suppose this is not how you call it?
How to make it works? Thank you!
1 Reply
@gerard
Hey
I don't know why, I never get notifications here, and I checked this convo like 3 times during the last 2 hours but didn't see any reply, it's unbelievable.
Thank you for the answer 🙏
Will try to do this
So here, I have loginAttempt which stores the data about the guy we logged in, I need somehow to pass this?
I need somhow to make the loginAttempt a global variable and then to be able to pass it inside the Login and the Logout