code4romania / de-urgenta-backend

De Urgență backend - web & mobile
https://de-urgenta-backend.vercel.app/
Mozilla Public License 2.0
10 stars 21 forks source link

Create endpoint to refresh a user's JWT token #188

Closed Flu closed 1 year ago

Flu commented 1 year ago

I assumed a user would need to already be logged in for this to make sense, hence the Authorize attribute. I'm not sure this is the right way to do it as the old token is still valid.

I also assumed the endpoint probably shouldn't ask for the login information as this would be no different from the login endpoint.

Closes #162