How to get Authenticated User in controller? #1071
Unanswered
Martijn-Bos
asked this question in
Q&A
Replies: 1 comment 2 replies
-
In your controller, you can use Or you can inject security service like the doc said so: https://symfony.com/doc/current/security.html#fetching-the-user-from-a-service |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm sending an incoming request on an API endpoint with valid jwt token. I'd like to get the attached User class in the controller or later in the process. How to do this?
How do I here get the user entity connected to that token?
Beta Was this translation helpful? Give feedback.
All reactions