keyshade icon indicating copy to clipboard operation
keyshade copied to clipboard

API: Add logout endpoint

Open rajdip-b opened this issue 9 months ago • 10 comments

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.

rajdip-b avatar May 18 '24 08:05 rajdip-b