Skip to content

Implemented user decorator#452

Open
Fale1278 wants to merge 2 commits intoArena1X:mainfrom
Fale1278:main
Open

Implemented user decorator#452
Fale1278 wants to merge 2 commits intoArena1X:mainfrom
Fale1278:main

Conversation

@Fale1278
Copy link
Copy Markdown

@Fale1278 Fale1278 commented Mar 28, 2026

Closes #106


The CurrentUser decorator retrieves the authenticated user from the incoming request in a NestJS application. It can return either the full User object or a specific property (like id or email). If no user is found, it throws an UnauthorizedException, ensuring that protected routes are accessed only by authenticated users.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 28, 2026 3:08pm

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@Fale1278 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Olowodarey
Copy link
Copy Markdown
Collaborator

@Fale1278 fix workflow

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.

[Backend] Implement Current User Decorator

2 participants