token refresh failure is unprocessable and error is not ours

This commit is contained in:
Andre Medeiros 2021-07-12 14:47:22 -04:00
parent 7a89d5503c
commit bc5acffcbe

View file

@ -28,7 +28,7 @@ func (app *application) upsertAccountHandler(w http.ResponseWriter, r *http.Requ
app.logger.WithFields(logrus.Fields{
"err": err,
}).Info("failed to refresh token")
app.errorResponse(w, r, 500, err.Error())
app.errorResponse(w, r, 422, err.Error())
return
}