logout - JS SDK Auth Reference
This documentation provides a reference to the sdk.auth.logout
method used to send requests to Medusa's Authentication API routes. It can be used for admin users, customers, or custom actor types.
This method deletes the authentication session of the currently logged-in user to log them out. It sends a request to the Delete Authentication Session API route.
Example#
Returns#
Promise
Promise<void>This method deletes the authentication session of the currently logged-in user to log them out.
It sends a request to the Delete Authentication Session API route.
Was this page helpful?