Sending a blank token results in requests having an Authorization: Token header, to which Replicate's API responds with a 422 error instead of a 401. This PR prevents empty tokens from being sent, so that the client receives the more instructive server error.
Sending a blank token results in requests having an
Authorization: Token
header, to which Replicate's API responds with a 422 error instead of a 401. This PR prevents empty tokens from being sent, so that the client receives the more instructive server error.