API Endpoint - Get Current User From Authorization Token?
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently an API endpoint does not exist for getting the current user's login information given an authorization token.
Referencing https://discuss.flarum.org/d/2516
> But I agree something like this should by added. Maybe an /api/users/me or simply /api/me endpoint that redirects to the proper user ID. Or, another alternative, embedding a hypermedia link in the root URL of the API. That way, when you go to /api/, the response would contain the URL of the current user's information.
>
> Would you be so kind to create an issue about this on GitHub?
Contributor guide
Research direction
Start by reviewing the API's existing authorization-token handling and the linked discussion about `/api/users/me`, `/api/me`, and a root API hypermedia link. Decide which endpoint shape and response are intended; done means an authenticated token can retrieve the current user's login information.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100