Users API
Get User by Username
Returns the profile of a user by their GitHub username.
GET /User?username={username}
Authorization: Bearer {jwt}Query Parameters:
| Parameter | Required | Description |
|---|---|---|
username | Yes | GitHub username |
Response: 200 OK
{
"id": 1,
"githubId": "12345678",
"username": "octocat",
"email": "octocat@github.com",
"avatarUrl": "https://avatars.githubusercontent.com/u/12345678",
"accessToken": "gho_...",
"lastLogin": "2026-05-27T10:00:00Z"
}Notes:
- The
usernameis read fromlocalStorage["username"]in the dashboard - The
accessTokenfield contains the GitHub OAuth access token — handle with care
Last updated on