icefoganalytics / travel-authorization

0 stars 0 forks source link

Make Sure User's Don't Get Created Twice #194

Closed klondikemarlen closed 4 months ago

klondikemarlen commented 5 months ago

Relates to:

Context

Is your feature request related to a problem? Please describe. I logged in to the production server and it created me a second account. This broke my permissions, because the current user that loaded in the back-end was not the one associated with my user record in my /profile page. I was getting a 403 when I tried to sync my user profile.

Describe the solution you'd like Investigate this issue; make sure that only one user per-email can exist.

Additional context Problem can probably be found in api/src/middleware/authz.middleware.ts