keyshade
keyshade copied to clipboard
API: Add logout endpoint
Description
Add an endpoint to log out. The functionality will be very simple - just clear the token
cookie.
Solution
- Add a controller in auth controller.
- Do not add
@Public
to it. - Create a service function that will unset the
token
cookie.