lenra-io / server

GNU Affero General Public License v3.0
6 stars 0 forks source link

fix: Error handling in OAuth #485

Closed jonas-martinez closed 8 months ago

jonas-martinez commented 9 months ago

About this PR

Linked to https://github.com/lenra-io/server/issues/399

I added some error handling on the oauth system. If the user fetched from the token is nil, we return a invalid_token error.

Checklist

I included unit tests that cover my changes

I added/updated the documentation about my changes

taorepoara commented 9 months ago

@jonas-martinez Can you explain this PR, I don't understand (even reading the linked issue) when that happen.

You also have to fix the checks

jonas-martinez commented 9 months ago

@taorepoara I added some text in the PR description to explain its purpose.

jonas-martinez commented 9 months ago

@taorepoara Fixed

taorepoara commented 8 months ago

:tada: This PR is included in version 1.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: