TripleParity / docks-api

RESTful API Server for Docks
https://tripleparity.github.io/docks-api/stack-api-spec.html
GNU General Public License v3.0
0 stars 0 forks source link

Endpoint: return username if token valid #39

Closed egeldenhuys closed 6 years ago

egeldenhuys commented 6 years ago

GET /api/auth/me

Return information on the bearer of the token sent in the Authorization

Response

200 Authentication Successful
{
  "username": "<username>"
}
401 Bad Credentials
egeldenhuys commented 6 years ago

Required by TripleParity/docks-ui/issues/92

egeldenhuys commented 6 years ago

Token should contain the username, redundant issue. Will reopen if required by front-end.