The forge APIs all support fetching the authenticated user's profile but the library doesn't expose this.
- GitHub:
GET /user
- GitLab:
GET /api/v4/user
- Gitea/Forgejo:
GET /api/v1/user
A GetAuthenticatedUser() method on the Forge interface (or a new UserService) would allow consumers to get the current user's username, avatar URL, and email after authenticating.
This is needed for applications that use OAuth to authenticate users via forges and need to display user profile information.
The forge APIs all support fetching the authenticated user's profile but the library doesn't expose this.
GET /userGET /api/v4/userGET /api/v1/userA
GetAuthenticatedUser()method on the Forge interface (or a new UserService) would allow consumers to get the current user's username, avatar URL, and email after authenticating.This is needed for applications that use OAuth to authenticate users via forges and need to display user profile information.