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: UserResponse can now be null #102

Closed
wants to merge 1 commit into from

Conversation

jonas-martinez
Copy link
Collaborator

@jonas-martinez jonas-martinez commented Oct 13, 2023

About this PR

Linked to lenra-io/server#399

There was a problem when the access token was invalid where the server tried to get the user linked to this access token from the DB but because the access token is invalid, it returned nil instead of the user object.

Checklist

  • I didn't over-scope my PR
  • My PR title matches the commit convention
  • I did not include breaking changes
  • I made my own code-review before requesting one

I included unit tests that cover my changes

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

I added/updated the documentation about my changes

  • 📜 README.md
  • 📕 docs/*.md
  • 📓 docs.lenra.io
  • 🙅 no documentation needed

@jonas-martinez jonas-martinez self-assigned this Oct 13, 2023
@jonas-martinez jonas-martinez added bug Something isn't working help wanted Extra attention is needed labels Oct 13, 2023
@taorepoara
Copy link
Member

@jonas-martinez Can you explain this PR please ?

@jonas-martinez
Copy link
Collaborator Author

@taorepoara I added some context in the PR description

@taorepoara
Copy link
Member

In my opinion this can't happen or it should return an error from the server.

@jonas-martinez
Copy link
Collaborator Author

@taorepoara I'm going to see if I can do something, I'm moving this PR to In Progress

@jonas-martinez
Copy link
Collaborator Author

This PR can be closed as an alternative has been found involving the server sending an error instead of nil.

@jonas-martinez jonas-martinez deleted the fix-user-response-nil branch October 16, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants