FranckKe / mersea

Web app to manage and visualise geolocalized waste report
https://oceanplastictracker.com
MIT License
16 stars 4 forks source link

Frontend authentication on master#c803fc4 #402

Open mdouchement opened 4 months ago

mdouchement commented 4 months ago

The API returns the JWT in the Authorization response header of POST /users/sign_in and it is not used in GET /users/me by the Frontend which results in a 401 Unauthorized.

According to my understanding, the Frontendrelies on https://github.com/websanova/vue-auth/blob/v2.21.14-beta/drivers/auth/bearer.js to get the JWT from the response, so it may be a regression from the Frontend. vue-auth is way outdated by the way.

I don't know why, but there is also cookie headers in the requests and responses.