Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix auth issues #98

Merged
merged 4 commits into from
Jun 13, 2023
Merged

Fix auth issues #98

merged 4 commits into from
Jun 13, 2023

Conversation

yusofy
Copy link
Contributor

@yusofy yusofy commented Jun 13, 2023

This PR makes changes to a couple of Auth related things.

  • Changed the SignUp class in the auth model. name is no longer a list however still optional. Was changed as list was not an accepted format.
  • In the auth api, I raised an exception when a user is not found instead of a Traceback error being thrown.
  • In the auth api, I changed the status code for Invalid Credentials to be HTTP_401_UNAUTHORIZED instead of generic 400 error.

…ead of throwing a Traceback error. Changed status code for Invalid credentials to HTTP_401_UNAUTHORIZED
Copy link
Collaborator

@homanp homanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yusofy Big thanks for this update/fix.

Will be merged later today!

@homanp homanp merged commit a6d0a2e into superagent-ai:main Jun 13, 2023
4 checks passed
@yusofy yusofy deleted the Fix_Auth_Issues branch June 13, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants