Skip to content

Comments

Feat/me endpoint#168

Merged
aji70 merged 12 commits intoMyFanss:mainfrom
yahia008:feat/me_endpoint
Feb 23, 2026
Merged

Feat/me endpoint#168
aji70 merged 12 commits intoMyFanss:mainfrom
yahia008:feat/me_endpoint

Conversation

@yahia008
Copy link
Contributor

Title: feat(users): add GET /users/me endpoint (closes #48)

Description:

This PR implements the GET /users/me endpoint to allow authenticated users to retrieve their current profile information.

✅ What’s Included

Added GET /users/me endpoint (authentication required)

Protected route using JwtAuthGuard

Extracted authenticated user from request

Returns UserProfileDto

Includes:

is_creator flag

Nested creator object (if user is a creator) with:

bio

subscription_price

other creator profile fields

Returns 401 Unauthorized if no valid JWT is provided

📌 Behavior

Authenticated users receive their full profile data

Creator users receive additional creator profile information

Unauthenticated requests receive 401

This endpoint is intended for frontend caching and will be used for:

Navbar user state

Profile page

General session hydration

Closes #48 🚀

@yahia008
Copy link
Contributor Author

@aji70
ci/cd issue fixed sir

Copy link
Contributor

@aji70 aji70 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG

Copy link
Contributor

@aji70 aji70 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull and fix cli

Copy link
Contributor

@aji70 aji70 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG

@aji70 aji70 merged commit 7718604 into MyFanss:main Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GET /users/me endpoint

2 participants