def logout(self, request): response = ResponseRedirect(self.logout_redirect_url) response.delete_cookie("jwt") return response