flarum / flarum/issue-archive

API Endpoint - Get Current User From Authorization Token?

Open
#326 6 comments 1 reaction 0 assignees View on GitHub
type/feature
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.