The /public/auth/login endpoint stores the authorization token in cookies. This endpoint is used in the web UI authorization.
Since cookie-based authorization is not a good practice for REST API, there is another login endpoint. The /public/jwt/login endpoint returns the JWT authorization token in the JSON response, which could be used to authenticate further REST API requests.