Island: Remove unnecessary error in Authenticate POST

This commit is contained in:
Shreya Malviya 2022-08-02 13:41:46 +05:30
parent 767cc8fa3e
commit 05f9e527e9
1 changed files with 1 additions and 2 deletions

View File

@ -50,5 +50,4 @@ class Authenticate(AbstractResource):
except IncorrectCredentialsError: except IncorrectCredentialsError:
return make_response({"error": "Invalid credentials"}, HTTPStatus.UNAUTHORIZED) return make_response({"error": "Invalid credentials"}, HTTPStatus.UNAUTHORIZED)
# API Spec: Why are we sending "error" here? return make_response({"access_token": access_token}, HTTPStatus.OK)
return make_response({"access_token": access_token, "error": ""}, HTTPStatus.OK)